]> git.eshelyaron.com Git - emacs.git/commitdiff
(unlock_all_files): Don't call unlock_file;
authorKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 06:53:36 +0000 (06:53 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 06:53:36 +0000 (06:53 +0000)
do the work directly, and avoid calling Fexpand_file_name.

src/filelock.c

index 55be9fb862897be33c677a0e2a6e774da294679e..c98afdd30d1834454aac195c1fa9c5badea2b0ba 100644 (file)
@@ -385,7 +385,14 @@ unlock_all_files ()
     {
       b = XBUFFER (XCONS (XCONS (tail)->car)->cdr);
       if (STRINGP (b->file_truename) && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
-       unlock_file (b->file_truename);
+       {
+         register char *lfname;
+
+         MAKE_LOCK_NAME (lfname, b->file_truename);
+
+         if (current_lock_owner (0, lfname) == 2)
+           unlink (lfname);
+       }
     }
 }
 \f