Turn off child handler for now.
This commit is contained in:
parent
bb4c940b26
commit
1cb64afb40
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,7 @@ while (my $line = <STDIN>) {
|
|||
my %childProcesses;
|
||||
my %finishedOperations;
|
||||
|
||||
$SIG{CHLD} = sub {
|
||||
my $childHandler = sub {
|
||||
# don't change $! and $? outside handler
|
||||
local ($!, $?);
|
||||
while ( (my $pid = waitpid(-1, WNOHANG)) > 0 ) {
|
||||
|
@ -155,6 +155,7 @@ $SIG{CHLD} = sub {
|
|||
delete $childProcesses{$pid};
|
||||
}
|
||||
};
|
||||
# $SIG{CHLD} = $childHandler;
|
||||
##############################################################################
|
||||
sub StartChildLog($$) {
|
||||
my($operation, $pid) = @_;
|
||||
|
|
Loading…
Reference in a new issue