]> git.eshelyaron.com Git - emacs.git/commit
Fix data-loss with --version.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Nov 2012 17:29:52 +0000 (09:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Nov 2012 17:29:52 +0000 (09:29 -0800)
commit76abf5e5a55899a0b3f8851fce7406858978e9a6
tree069cecbfb83e475d506397550e4146a0efc51757
parentf200a427ffaa22f71908bd78448dcb714a15c82d
Fix data-loss with --version.

* emacs.c (close_output_streams): Use strerror, not emacs_strerror,
as we can't assume that emacs_strerror is initialized, and strerror
is good enough here.
(main): Invoke atexit earlier, to catch earlier instances of
sending data to stdout and exiting, e.g., "emacs --version >/dev/full".

Fixes: debbugs:9574
src/ChangeLog
src/emacs.c