diff options
| author | Paul Eggert | 2012-11-03 11:54:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-11-03 11:54:17 -0700 |
| commit | 7ccfb720b477df05042729e0e300bae5922f5120 (patch) | |
| tree | d5bfded71b48dfefbc4e3334c0ae586de29ab7bc /ChangeLog | |
| parent | 376a8e83bb3438f77dadf2d9910ef7baabcc82c2 (diff) | |
| download | emacs-7ccfb720b477df05042729e0e300bae5922f5120.tar.gz emacs-7ccfb720b477df05042729e0e300bae5922f5120.zip | |
Fix data-loss with --batch.
* admin/merge-gnulib (GNULIB_MODULES): Add close-stream.
* lib/close-stream.c, lib/close-stream.h, lib/fpending.c
* lib/fpending.h, m4/close-stream.m4, m4/fpending.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/emacs.c: Include <close-stream.h>.
(close_output_streams): New function.
(main): Pass it to atexit, so that Emacs closes stdout and stderr
and handles errors appropriately.
(Fkill_emacs): Don't worry about flushing, as close_output_stream
does that now.
Fixes: debbugs:9574
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-11-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix data-loss with --batch (Bug#9574). | ||
| 4 | * lib/close-stream.c, lib/close-stream.h, lib/fpending.c | ||
| 5 | * lib/fpending.h, m4/close-stream.m4, m4/fpending.m4: | ||
| 6 | New files, from gnulib. | ||
| 7 | * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. | ||
| 8 | |||
| 1 | 2012-11-02 Glenn Morris <rgm@gnu.org> | 9 | 2012-11-02 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * Makefile.in (EMACS_ICON): New variable. | 11 | * Makefile.in (EMACS_ICON): New variable. |