[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 11:49:46 -0700 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:
> On Thu, Feb 22, 2024 at 06:57:00AM -0700, arnold@skeeve.com wrote:
> > 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).
>
> Wow.
>
> Stupid question: why didn't you index open_pipes by the write file
> descriptor instead of doing linear searches?
I didn't think of it. I may redo things to do that, it would
simplify the code.
Thanks,
Arnold