diff options
| author | Eli Zaretskii | 2012-12-15 15:38:21 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-12-15 15:38:21 +0200 |
| commit | b07286179ec721bc44a7e32111318fb325789fe1 (patch) | |
| tree | 605b9464822cc82d4b9b2e437c6711622142c7d5 /src/ChangeLog | |
| parent | 279f9b06fd693b67d1178cdb5ad1ecf513d199ad (diff) | |
| download | emacs-b07286179ec721bc44a7e32111318fb325789fe1.tar.gz emacs-b07286179ec721bc44a7e32111318fb325789fe1.zip | |
Fix bug #13079 on MS-Windows with temp files not being deleted.
src/w32.h (_child_process): New members input_file and
pending_deletion.
(register_child): First argument is now pid_t.
(record_infile, record_pending_deletion): New prototypes.
src/w32proc.c (new_child): Initialize input_file and
pending_deletion members of the child.
(delete_child): Delete the child's temporary input file, if any,
that is pending deletion.
(register_child): First argument is now pid_t.
(record_infile, record_pending_deletion): New functions.
(reap_subprocess): Fix a typo in DebPrint string.
(sys_spawnve, sys_kill): Use pid_t for PID arguments.
src/fileio.c (internal_delete_file): Return an int again: non-zero
if delete-file succeeds, zero otherwise.
src/lisp.h (internal_delete_file): Adjust prototype.
src/callproc.c (Fcall_process): Don't overwrite infile with result
of DECODE_FILE.
[WINDOWSNT] If BUFFER is an integer, i.e. we are launching an
asynchronous subprocess, record the name of the input file name,
if any.
(delete_temp_file) [WINDOWSNT]: If internal_delete_file fails to
delete the file, record it as pending deletion when the subprocess
exits.
nt/inc/ms-w32.h (sys_unlink): Provide prototype.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 960e4e52c59..34959cb691d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,34 @@ | |||
| 1 | 2012-12-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | Fix bug #13079 on MS-Windows with temp files not being deleted. | ||
| 4 | * w32.h (_child_process): New members input_file and | ||
| 5 | pending_deletion. | ||
| 6 | (register_child): First argument is now pid_t. | ||
| 7 | (record_infile, record_pending_deletion): New prototypes. | ||
| 8 | |||
| 9 | * w32proc.c (new_child): Initialize input_file and | ||
| 10 | pending_deletion members of the child. | ||
| 11 | (delete_child): Delete the child's temporary input file, if any, | ||
| 12 | that is pending deletion. | ||
| 13 | (register_child): First argument is now pid_t. | ||
| 14 | (record_infile, record_pending_deletion): New functions. | ||
| 15 | (reap_subprocess): Fix a typo in DebPrint string. | ||
| 16 | (sys_spawnve, sys_kill): Use pid_t for PID arguments. | ||
| 17 | |||
| 18 | * fileio.c (internal_delete_file): Return an int again: non-zero | ||
| 19 | if delete-file succeeds, zero otherwise. | ||
| 20 | |||
| 21 | * lisp.h (internal_delete_file): Adjust prototype. | ||
| 22 | |||
| 23 | * callproc.c (Fcall_process): Don't overwrite infile with result | ||
| 24 | of DECODE_FILE. | ||
| 25 | [WINDOWSNT] If BUFFER is an integer, i.e. we are launching an | ||
| 26 | asynchronous subprocess, record the name of the input file name, | ||
| 27 | if any. | ||
| 28 | (delete_temp_file) [WINDOWSNT]: If internal_delete_file fails to | ||
| 29 | delete the file, record it as pending deletion when the subprocess | ||
| 30 | exits. | ||
| 31 | |||
| 1 | 2012-12-14 Eli Zaretskii <eliz@gnu.org> | 32 | 2012-12-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 33 | ||
| 3 | * editfns.c [HAVE_PWD_H]: Include grp.h. | 34 | * editfns.c [HAVE_PWD_H]: Include grp.h. |