[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed change to closeout module
From: |
Bruno Haible |
Subject: |
Re: proposed change to closeout module |
Date: |
Fri, 29 Sep 2006 20:04:23 +0200 |
User-agent: |
KMail/1.9.1 |
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