]> Sergey Matveev's repositories - public-inbox.git/commitdiff
spawn: proper signal handling for vfork
authorEric Wong <e@80x24.org>
Mon, 2 May 2016 08:48:46 +0000 (08:48 +0000)
committerEric Wong <e@80x24.org>
Mon, 2 May 2016 08:48:46 +0000 (08:48 +0000)
We cannot afford to fire Perl-level signal handlers in the
vforked child process since they're not designed to run in
the child like that.

Thus we need to block all signals before calling vfork, reset
signal dispositions in the child, and restore the signal mask in
the parent.

ref: https://ewontfix.com/7


No differences found