+16Nov00=======================================================================
+1. Alter the process reaping code in cluster.pl to use waitpid
12Nov00=======================================================================
1. Fix lack 't' action in Filter.pm
08Nov00=======================================================================
use Data::Dumper;
use Fcntl ':flock';
+use POSIX ":sys_wait_h";
use Local;
sub reap
{
$SIG{'CHLD'} = \&reap;
- my $cpid = wait;
- @outstanding_connects = grep {$_->{pid} != $cpid} @outstanding_connects;
+ my $cpid;
+ while (($cpid = waitpid(1, &WNOHANG) != -1)) {
+ @outstanding_connects = grep {$_->{pid} != $cpid} @outstanding_connects;
+ }
}
# this is where the input queue is dealt with and things are dispatched off to other parts of