diff options
author | Richard M. Stallman <rms@gnu.org> | 1999-07-14 16:00:57 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1999-07-14 16:00:57 +0000 |
commit | 33bae69064f184592608662494d4efe33b36d816 (patch) | |
tree | 62df84fe002cf2ec13755a33e3a51cf2b5a32ac3 /src/filelock.c | |
parent | 0846761ddf923b31b663eccd9f585b484f2a1130 (diff) | |
download | emacs-33bae69064f184592608662494d4efe33b36d816.tar.gz |
(lock_file): Do nothing if purifying.emacs-20.4
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c index b671533161f..dcf3c658ce0 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -545,6 +545,12 @@ lock_file (fn) 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); |