[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Behavior of fflush with SIGPIPE on stdout [PATCH]

From: Andrew J. Schorr
Subject: Re: [bug-gawk] Behavior of fflush with SIGPIPE on stdout [PATCH]
Date: Sat, 25 Mar 2017 15:06:05 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Mar 25, 2017 at 07:56:38PM +0100, FERRIEUX Alexandre - IMT/OLN wrote:
> On 25/03/2017 16:13, Andrew J. Schorr wrote:
> >[non-POSIX] It looks like Cygwin is OK, but I don't
> >know about the others. Is 128+EPIPE a cross-platform standard?
> >
> Well, if you're afraid of what can happen when you call exit(141) instead of 
> exit(1), just use a bit of ifdeffery..

I defer to Arnold. Using lots of platform-specific ifdefs is really ugly and
error-prone and hard to maintain. This issue arises in several places in the
code, so we would need a special epipe_exit function. Is it worth it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]