From f5ee322c18a1d6e78c24cb54522a81c562ae2a3a Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 30 Apr 2004 06:15:26 +0000 Subject: [PATCH] Handle EBUSY errors from the optional-extra advisory file locking. --- src/t_mtab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/t_mtab.c b/src/t_mtab.c index 89c384ab..2d5df378 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)); -- 2.47.3