diff options
| author | Richard M. Stallman | 1999-07-14 16:00:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-07-14 16:00:57 +0000 |
| commit | 33bae69064f184592608662494d4efe33b36d816 (patch) | |
| tree | 62df84fe002cf2ec13755a33e3a51cf2b5a32ac3 /src | |
| parent | 0846761ddf923b31b663eccd9f585b484f2a1130 (diff) | |
| download | emacs-33bae69064f184592608662494d4efe33b36d816.tar.gz emacs-33bae69064f184592608662494d4efe33b36d816.zip | |
(lock_file): Do nothing if purifying.emacs-20.4
Diffstat (limited to 'src')
| -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) | |||
| 545 | register char *lfname, *locker; | 545 | register char *lfname, *locker; |
| 546 | lock_info_type lock_info; | 546 | lock_info_type lock_info; |
| 547 | 547 | ||
| 548 | /* Don't do locking while dumping Emacs. | ||
| 549 | Uncompressing wtmp files uses call-process, which does not work | ||
| 550 | in an uninitialized Emacs. */ | ||
| 551 | if (! NILP (Vpurify_flag)) | ||
| 552 | return; | ||
| 553 | |||
| 548 | orig_fn = fn; | 554 | orig_fn = fn; |
| 549 | fn = Fexpand_file_name (fn, Qnil); | 555 | fn = Fexpand_file_name (fn, Qnil); |
| 550 | encoded_fn = ENCODE_FILE (fn); | 556 | encoded_fn = ENCODE_FILE (fn); |