• Paul Eggert's avatar
    Fix data-loss with --version. · 76abf5e5
    Paul Eggert authored
    * 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
    76abf5e5
emacs.c 70.7 KB