emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#23267: closed (suggestion: silently ignore EPIPE errors when SIGPIPE


From: GNU bug Tracking System
Subject: bug#23267: closed (suggestion: silently ignore EPIPE errors when SIGPIPE is set to 'ignore')
Date: Tue, 22 Sep 2020 22:36:02 +0000

Your message dated Tue, 22 Sep 2020 15:35:32 -0700
with message-id <aa447ea8-9a0b-b561-6163-dbc59d4efb74@cs.ucla.edu>
and subject line Re: bug#23267: suggestion: silently ignore EPIPE errors when 
SIGPIPE is set to 'ignore'
has caused the debbugs.gnu.org bug report #23267,
regarding suggestion: silently ignore EPIPE errors when SIGPIPE is set to 
'ignore'
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
23267: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23267
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: suggestion: silently ignore EPIPE errors when SIGPIPE is set to 'ignore' Date: Mon, 11 Apr 2016 02:36:26 -0400
Hello,

This is a small addition to a recent change:
   1cec27a7f0e5c7bdc44a88ef51af09f87a8cbc24 
   grep: use errno consistently in write diagnostics

With the above change, if SIGPIPE is set to 'ignore' (e.g. by the shell or 
python),
then grep would exit with "write error: Broken Pipe".
Based on recent suggestion from Pádraig Brady
( http://lists.gnu.org/archive/html/coreutils/2016-04/msg00004.html ) perhaps 
it would be better
to have special case for EPIPE and exit silently (as if SIGPIPE was not ignored 
and terminated the program?).

Patch attached for such modification.

One issue of which I'm not certain: I assumed that if 'prline' was called, a 
match was found.
Thus, EPIPE will result in exit(EXIT_SUCCESS) indicating a match.


Comments welcomed,
 - Assaf

Attachment: 0001-grep-silently-ignore-EPIPE-errors.patch
Description: Binary data


--- End Message ---
--- Begin Message --- Subject: Re: bug#23267: suggestion: silently ignore EPIPE errors when SIGPIPE is set to 'ignore' Date: Tue, 22 Sep 2020 15:35:32 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
I'm cleaning up old grep bug reports and am closing this one as wontfix.


--- End Message ---

reply via email to

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