From 5b7cb8687f98c54dcbceae65ac58f3a0d0d0b5d4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Feb 2011 10:53:50 +0100 Subject: [PATCH] Revert "libmount: do not check for EAGAIN after flock()" Linux is not 100% POSIX compatible in this area... strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)" This reverts commit 78d8c28f746bcc8d4e642c39669d8e58dea8d029. --- shlibs/mount/src/tab_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c index 6b7b4beffc..5373e2fa20 100644 --- a/shlibs/mount/src/tab_update.c +++ b/shlibs/mount/src/tab_update.c @@ -619,7 +619,7 @@ static int utab_lock(const char *filename) while (flock(fd, LOCK_EX) < 0) { int errsv; - if (errno == EINTR) + if ((errno == EAGAIN) || (errno == EINTR)) continue; errsv = errno; close(fd); -- 2.47.3