GNU bug report logs - #9574
data-loss with --batch: ignored write failure

Previous Next

Package: emacs;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Thu, 22 Sep 2011 14:40:02 UTC

Severity: minor

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Jim Meyering <jim <at> meyering.net>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 9574 <at> debbugs.gnu.org
Subject: bug#9574: data-loss with --batch: ignored write failure
Date: Mon, 16 Apr 2012 21:58:03 -0400
Jim Meyering wrote:

> A clean fix for the entire problem (including --help and --version and
> anything else that may write to stdout) would be to ensure that no other
> code path explicitly closes stdout and to add this line in main:
>
>     atexit (close_stdout);
>
> However, that would require gnulib's closeout module and would probably
> end up being too invasive a change to make during a code freeze.


Such a change could probably be applied to the Emacs trunk now...
(Cc'ing Paul since he has done most/all of the gnulib additions in Emacs.)




This bug report was last modified 12 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.