mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Handle EBUSY errors from the optional-extra advisory file locking.
This commit is contained in:
+2
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user