]> Sergey Matveev's repositories - public-inbox.git/commit
lei: TSTP affects all curl and related subprocesses
authorEric Wong <e@80x24.org>
Thu, 14 Oct 2021 13:16:07 +0000 (13:16 +0000)
committerEric Wong <e@80x24.org>
Fri, 15 Oct 2021 02:23:26 +0000 (02:23 +0000)
commit4b5a1b5787edee2a3b6cc10a3ccc5721f1414268
tree5439effe167100e8c2865a92ddc4df4b2bf6c0df
parentf64fdbc7cc19a34f471abaeada9195597bf7a282
lei: TSTP affects all curl and related subprocesses

By relying more on pgroups for remaining remaining processes,
this lets us pause all curl+tail subprocesses with a single
kill(2) to avoid cluttering stderr.

We won't bother pausing the pigz/gzip/bzip2/xz compressor
process not cat-file processes, though, since those don't write
to the terminal and they idle soon after the workers react to
SIGSTOP.

AutoReap is hoisted out from TestCommon.pm.  CLONE_SKIP
is gone since we won't be using Perl threads any time
soon (they're discouraged by the maintainers of Perl).
MANIFEST
lib/PublicInbox/AutoReap.pm [new file with mode: 0644]
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiInput.pm
lib/PublicInbox/LeiMirror.pm
lib/PublicInbox/LeiRemote.pm
lib/PublicInbox/LeiToMail.pm
lib/PublicInbox/LeiXSearch.pm
lib/PublicInbox/TestCommon.pm