I'm cleaning up old grep bug reports and am closing this one as wontfix.
Even when SIGPIPE has the default behaviour, it seems that there is a
timing issue if grep has the time to treat EPIPE as an error before
the process being killed due to the delivery of the signal.
This seems to happen easily when running on Android (perhaps due to
slower signal delivery, or relat
Assaf Gordon wrote:
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
I don't see why this is would be a good idea. grep should report write errors.
A caller t
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