diff src/filelock.c @ 25040:a3b19ebb46f9

(lock_if_free): Return -1 if check_lock_owner() has returned -1 (lockfile exists but is not a symlink?)
author Karl Heuer <kwzh@gnu.org>
date Thu, 22 Jul 1999 00:41:21 +0000
parents 1dfff6fa0f05
children 8282b2b596a2
line wrap: on
line diff
--- a/src/filelock.c	Wed Jul 21 23:01:38 1999 +0000
+++ b/src/filelock.c	Thu Jul 22 00:41:21 1999 +0000
@@ -514,6 +514,8 @@
         }
       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.  */
     }