[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: arnold
Subject: Re: [bug-gawk] Behavior of fflush with SIGPIPE on stdout [PATCH]
Date: Mon, 27 Mar 2017 12:50:07 -0600
User-agent: Heirloom mailx 12.4 7/29/08

Hi All.

I have set things up (I hope) so that gawk behaves like other awks and
dies via SIGPIPE when that should happen. This then automatically
has the exit status set to what it should be in POSIX systems.

There were several factors at work here. First was that various fflush
calls were not respecting the non fatal settings.

Next was the fact that SIGPIPE was ignored by default to enable printing
informative errors. But EPIPE wasn't taken into account for ffflush either.

Third was that I didn't thoroughly check how SIGPIPE exits, extra confused
by Bash's pipefail stuff.

I think I have it all straightened out now.  If not, it's good enough
until some future date or someone else wants to tackle it.

I think we can close off the discussion.



reply via email to

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