]> Sergey Matveev's repositories - public-inbox.git/commit
spawn: pi_fork_exec: restore parent sigmask in child
authorEric Wong <e@80x24.org>
Sun, 7 Feb 2021 08:51:43 +0000 (08:51 +0000)
committerEric Wong <e@80x24.org>
Sun, 7 Feb 2021 22:56:52 +0000 (22:56 +0000)
commit975dffc9bcb96f10bdc8a70bf6af67c2b46ab4b5
tree1161b13fda37a034bbd570296b7e13a12a2dd60f
parent17b960feb2362af29848cdac7548197bcccb3ff7
spawn: pi_fork_exec: restore parent sigmask in child

We continue to unblock SIGCHLD unconditionally, but also
any signals not blocked by the parent (wq_worker).

This will allow Ctrl-C (SIGINT) to stop "git clone" and allow
git-clone cleanup to be performed and other long-running
processes when pi_fork_exec supports setpgid(2).  This won't
affect existing daemons on systems with signalfd(2) or
EVFILT_SIGNAL at all, since those run with signals blocked
anyways.
lib/PublicInbox/Spawn.pm
lib/PublicInbox/SpawnPP.pm