Paul Eggert
7ccfb720b4
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
2012-11-03 11:54:17 -07:00
..
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-06-22 14:26:37 -07:00
2012-11-03 11:54:17 -07:00
2012-05-26 16:14:36 -07:00
2012-07-28 16:05:32 -07:00
2012-08-24 21:27:32 -07:00
2012-06-22 10:20:00 -07:00
2012-09-29 21:19:32 -07:00
2012-05-26 16:14:36 -07:00
2012-11-03 11:54:17 -07:00
2012-07-10 17:01:21 -07:00
2012-07-10 17:01:21 -07:00
2012-06-22 14:26:37 -07:00
2012-06-22 14:26:37 -07:00
2012-06-22 10:20:00 -07:00
2012-11-03 11:54:17 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-06-22 10:20:00 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-10-04 00:15:42 -07:00
2012-05-26 16:14:36 -07:00
2012-08-19 16:31:24 -07:00
2012-06-22 10:20:00 -07:00
2012-06-22 10:20:00 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-10-04 00:15:42 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-08-19 16:31:24 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-06-22 10:20:00 -07:00
2012-10-04 00:15:42 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-06-22 14:26:37 -07:00
2012-06-22 14:26:37 -07:00
2012-10-04 00:15:42 -07:00
2012-07-06 03:08:57 +00:00
2012-05-26 16:14:36 -07:00
2012-06-25 07:49:15 -07:00
2012-06-22 10:20:00 -07:00
2012-09-26 18:06:23 -07:00
2012-08-19 16:31:24 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00
2012-06-22 14:26:37 -07:00
2012-06-22 14:26:37 -07:00
2012-06-22 14:26:37 -07:00
2012-05-26 16:14:36 -07:00
2012-05-26 16:14:36 -07:00