changeset 24949:1dfff6fa0f05 EMACS_20_4

(lock_file): Do nothing if purifying.
author Richard M. Stallman <rms@gnu.org>
date Wed, 14 Jul 1999 16:00:57 +0000
parents 970c0b904d35
children 39bac3b71db1
files src/filelock.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Wed Jul 14 08:16:49 1999 +0000
+++ b/src/filelock.c	Wed Jul 14 16:00:57 1999 +0000
@@ -545,6 +545,12 @@
   register char *lfname, *locker;
   lock_info_type lock_info;
 
+  /* Don't do locking while dumping Emacs.
+     Uncompressing wtmp files uses call-process, which does not work
+     in an uninitialized Emacs.  */
+  if (! NILP (Vpurify_flag))
+    return;
+
   orig_fn = fn;
   fn = Fexpand_file_name (fn, Qnil);
   encoded_fn = ENCODE_FILE (fn);