From: Nathan Scott Date: Fri, 30 Apr 2004 06:15:26 +0000 (+0000) Subject: Handle EBUSY errors from the optional-extra advisory file locking. X-Git-Tag: v1.1.0~843 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f5ee322c18a1d6e78c24cb54522a81c562ae2a3a;p=users%2Fhch%2Fxfstests-dev.git Handle EBUSY errors from the optional-extra advisory file locking. --- diff --git a/src/t_mtab.c b/src/t_mtab.c index 89c384ab8..2d5df3782 100644 --- a/src/t_mtab.c +++ b/src/t_mtab.c @@ -135,7 +135,8 @@ lock_mtab (void) { if (j == 0) { /* We made the link. Now claim the lock. */ - if (fcntl (fd, F_SETLK, &flock) == -1) { + if (fcntl (fd, F_SETLK, &flock) == -1 && + errno != EBUSY) { int errsv = errno; printf(_("Can't lock lock file %s: %s\n"), mounted_lock, strerror (errsv));