As per flock() manpage, flock() does not set errno=EAGAIN. Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- shlibs/uuid/src/gen_uuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c index 720fda4..e567b29 100644 --- a/shlibs/uuid/src/gen_uuid.c +++ b/shlibs/uuid/src/gen_uuid.c @@ -333,7 +333,7 @@ static int get_clock(uint32_t *clock_high, uint32_t *clock_low, if (state_fd >= 0) { rewind(state_f); while (flock(state_fd, LOCK_EX) < 0) { - if ((errno == EAGAIN) || (errno == EINTR)) + if (errno == EINTR) continue; fclose(state_f); close(state_fd); -- 1.7.1 Petr -- Petr Uzel IRC: ptr_uzl @ freenode
Attachment:
pgprEdSY4MJjd.pgp
Description: PGP signature