Commit 5df0b2fa authored by Karl Heuer's avatar Karl Heuer

(lock_if_free): Return -1 if check_lock_owner()

has returned -1 (lockfile exists but is not a symlink?)
parent 5a78b471
......@@ -514,6 +514,8 @@ lock_if_free (clasher, lfname)
}
else if (locker == 1)
return 1; /* Someone else has it. */
else if (locker == -1)
return -1; /* current_lock_owner() returned strange error */
/* We deleted a stale lock; try again to lock the file. */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment