in reply to Re: No child processes - system limit?
in thread No child processes - system limit?
My reaper looks like this:
#=================================== sub _REAPER { #=================================== my $params = shift; foreach my $pid ( keys %Children ) { my $res = waitpid( $pid, WNOHANG ); if ( $res > 0 ) { $Children{$pid} = 0; die "Error in child" if $?; } } $SIG{'CHLD'} = \&_REAPER; }
Note, in the reaper, I set $Children{$pid} = 0 instead of deleting the key, as that was causing panic: freed scalar errors. I now clean up the %Children hash in the main loop of the parent.
The error I'm seeing is at the stage in the parent when I'm reading the 5,000 records from the source
thanks
Clint
|
|---|