restore default SIGCHLD handling to subprocesses so they can make their own mistakes
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 11 Jun 2010 05:12:01 +0000 (01:12 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 11 Jun 2010 05:13:53 +0000 (01:13 -0400)
Changelog
msva-perl

index 8590c10d2f0e740d186f3b2205199501302f28c0..8ccc65eb9c72b62327b2d05618eb4e697ddbeb7a 100644 (file)
--- 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 <dkg@fifthhorseman.net>  Tue, 23 Mar 2010 16:50:07 -0400
 
index 8d7d639aaa4737ba18226c569691352f1122dd98..fd5892e163fc58510da035f95c907d9ed91a5a02 100755 (executable)
--- 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;
         }