From d6c8d399b93f4646a90d0180fdcc1be35235a9c7 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 9 Feb 2011 13:14:04 +0100 Subject: [PATCH] libuuid: do not check for EAGAIN after flock() As per flock() manpage, flock() does not set errno=EAGAIN. Signed-off-by: Petr Uzel --- shlibs/uuid/src/gen_uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c index 720fda4340..e567b297f5 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); -- 2.47.3