]> Sergey Matveev's repositories - public-inbox.git/commit
ipc: children don't kill on DESTROY, reduce FD sharing
authorEric Wong <e@80x24.org>
Sat, 16 Jan 2021 11:36:22 +0000 (23:36 -1200)
committerEric Wong <e@80x24.org>
Mon, 18 Jan 2021 09:25:31 +0000 (09:25 +0000)
commit15147f7274c34dd5b177a90e9b6f5e86bc86dee3
tree3ac6ac02276a48e89ac918d0170603d6b6a23122
parentdda8237aeb5722b3a48c31896d9b7398e50823f1
ipc: children don't kill on DESTROY, reduce FD sharing

Children should not be blindly killing siblings on ->DESTROY
since they're typically shorter-lived than parents.  We'll
also be more careful about on-stack variables and now we
can rely exclusively on delete ops to close FDs.

We also need to fix our SIGPIPE handling for the oneshot case
while fixing a typo for delete, so we write "!" to the EOF pipe
to ensure the parent oneshot process exits on the first worker
that hits SIGPIPE, rather than waiting for the last worker to
hit SIGPIPE.
lib/PublicInbox/IPC.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiXSearch.pm