|
From: | FERRIEUX Alexandre - IMT/OLN |
Subject: | Re: [bug-gawk] Behavior of fflush with SIGPIPE on stdout [PATCH] |
Date: | Sat, 25 Mar 2017 11:49:31 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111113 Thunderbird/8.0 |
On 25/03/2017 01:16, Andrew J. Schorr wrote:
Why is it exiting successfully when it catches a SIGPIPE? As far as I can tell, that's not normal.
Agreed. And while you're at it, a full emulation of exiting-with-default-SIGPIPE-handler would be even cleaner: exit status should end up as 141 = 128+EPIPE.
cat /etc/services | head -1 ; echo $? # /etc/services: 141 -Alex
[Prev in Thread] | Current Thread | [Next in Thread] |