bug-gawk
[Top][All Lists]
Advanced

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

Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pi


From: arnold
Subject: Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe
Date: Thu, 22 Feb 2024 06:57:00 -0700
User-agent: Heirloom mailx 12.5 7/5/10

arnold@skeeve.com wrote:

> I will eventually try to do something else about SIGPIPE, but it's
> not high on my list.

Andreas,

Please see the attached patch. It is relative to the current
code in the gawk-5.3-stable branch in gawk's Git repo.

I bit the bullet and implemented my own versions of system()
and popen() in order to be able to reset SIGPIPE in the
child.  I expect that this closes off the race condition(s).

It passes the test suite for me. Please apply this and run
your tests a few times and let me know what you think.

Much thanks,

Arnold

Attachment: sigpipe-fix.diff
Description: Text document


reply via email to

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