Turn off child handler for now.

This commit is contained in:
Bradley M. Kuhn 2016-04-28 20:54:31 -07:00
parent bb4c940b26
commit 1cb64afb40

View file

@ -143,7 +143,7 @@ while (my $line = <STDIN>) {
my %childProcesses; my %childProcesses;
my %finishedOperations; my %finishedOperations;
$SIG{CHLD} = sub { my $childHandler = sub {
# don't change $! and $? outside handler # don't change $! and $? outside handler
local ($!, $?); local ($!, $?);
while ( (my $pid = waitpid(-1, WNOHANG)) > 0 ) { while ( (my $pid = waitpid(-1, WNOHANG)) > 0 ) {
@ -155,6 +155,7 @@ $SIG{CHLD} = sub {
delete $childProcesses{$pid}; delete $childProcesses{$pid};
} }
}; };
# $SIG{CHLD} = $childHandler;
############################################################################## ##############################################################################
sub StartChildLog($$) { sub StartChildLog($$) {
my($operation, $pid) = @_; my($operation, $pid) = @_;