mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-20 03:47:34 +00:00
(lock_if_free): Return -1 if check_lock_owner()
has returned -1 (lockfile exists but is not a symlink?)
This commit is contained in:
parent
5a78b47103
commit
5df0b2faaf
1 changed files with 2 additions and 0 deletions
|
|
@ -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. */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue