summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab_update.c
diff options
context:
space:
mode:
authorKarel Zak2011-02-18 10:53:50 +0100
committerKarel Zak2011-02-18 10:53:50 +0100
commit5b7cb8687f98c54dcbceae65ac58f3a0d0d0b5d4 (patch)
tree4e68c9ce4eaf65a5b77436eb9b4a78a8351d520b /shlibs/mount/src/tab_update.c
parentRevert "libuuid: do not check for EAGAIN after flock()" (diff)
downloadkernel-qcow2-util-linux-5b7cb8687f98c54dcbceae65ac58f3a0d0d0b5d4.tar.gz
kernel-qcow2-util-linux-5b7cb8687f98c54dcbceae65ac58f3a0d0d0b5d4.tar.xz
kernel-qcow2-util-linux-5b7cb8687f98c54dcbceae65ac58f3a0d0d0b5d4.zip
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.
Diffstat (limited to 'shlibs/mount/src/tab_update.c')
-rw-r--r--shlibs/mount/src/tab_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c
index 6b7b4beff..5373e2fa2 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);