]> Sergey Matveev's repositories - public-inbox.git/commit
spawn: pi_fork_exec: support "pgid"
authorEric Wong <e@80x24.org>
Sun, 7 Feb 2021 08:51:44 +0000 (08:51 +0000)
committerEric Wong <e@80x24.org>
Sun, 7 Feb 2021 22:56:54 +0000 (22:56 +0000)
commit5244475c94d9f80b0a76b6bfa9185bdff5a8a0d8
tree8ad4edda863b47a17ac64d236ac66c4944a971b2
parent975dffc9bcb96f10bdc8a70bf6af67c2b46ab4b5
spawn: pi_fork_exec: support "pgid"

We'll be using this to allow the "git clone" process hierarchy
to be killed via Ctrl-C.  This also fixes a long-standing bug
in error reporting for the Inline::C version, because we're
actually testing for errors, now!

n.b. strlen(3) is officially async-signal-safe as of
POSIX.1-2016, but I can't think of a reason any previous
implementation prior to that wouldn't be.
lib/PublicInbox/Spawn.pm
lib/PublicInbox/SpawnPP.pm
t/spawn.t