]> Sergey Matveev's repositories - public-inbox.git/commit
ds: awaitpid: do not clobber entries for reaped processes
authorEric Wong <e@80x24.org>
Sat, 21 Jan 2023 08:58:19 +0000 (08:58 +0000)
committerEric Wong <e@80x24.org>
Sat, 21 Jan 2023 16:33:22 +0000 (16:33 +0000)
commitfa5aad1d5f3c5abaa28a49181674930f2e06066e
treecd7ceaa55d76d71af07f4b0907b95599cd7053f8
parent5a52841422b46646c1e6d2f93c8c14d1d24a0544
ds: awaitpid: do not clobber entries for reaped processes

We must only write to $AWAIT_PIDS on the initial reap attempt.
While we're at it, avoid triggering an extra wakeup if we're
doing synchronous awaitpid.  This seems to eliminate most
reliance on Qspawn->DESTROY to call Qspawn->finalize.
lib/PublicInbox/DS.pm