From: Daniel Kahn Gillmor Date: Fri, 11 Jun 2010 05:12:01 +0000 (-0400) Subject: restore default SIGCHLD handling to subprocesses so they can make their own mistakes X-Git-Tag: msva-perl/0.3~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee8c2b6fdb4cc9cf2cec18f822fdf636adf8e5bb;p=monkeysphere-validation-agent.git restore default SIGCHLD handling to subprocesses so they can make their own mistakes --- diff --git a/Changelog b/Changelog index 8590c10..8ccc65e 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,7 @@ msva-perl (0.3~pre) UNRELEASED; * packaging re-organization * properly closing piped monkeysphere call + * restore default SIGCHLD handling for exec'ed subprocess -- Daniel Kahn Gillmor Tue, 23 Mar 2010 16:50:07 -0400 diff --git a/msva-perl b/msva-perl index 8d7d639..fd5892e 100755 --- a/msva-perl +++ b/msva-perl @@ -470,6 +470,8 @@ use strict; foreach (@ARGV) { push @args, untaint($_); } + # restore default SIGCHLD handling: + $SIG{CHLD} = 'DEFAULT'; $ENV{MONKEYSPHERE_VALIDATION_AGENT_SOCKET} = sprintf('http://localhost:%d', $self->port); exec(@args) or exit 111; }