Paul Eggert wrote: > As I understand it this affects only programs > that issue "warnings" (i.e., they output to stderr but then continue > without affecting the exit status)
Yes, exactly. xgettext is such a program. Or also GNU tar, when invoked as "tar xOvf tarfile somefile-in-it". > However, wouldn't this implementation be simpler? > > if (close_stream (stderr) != 0) > _exit (exit_failure); Yes. The 8 lines of code of stderr are a stripped-down version of fwriteerror_no_ebadf which has the same semantics as close_stream. Bruno
