X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=b67b9ff88e98b4c150a29d77dd61897ded2d0370;hb=465426f9282b990ec3462c63e5ca7613f92fb290;hp=0e93c4e9fc1c1e250df2d43e99aa4d5abb972a2d;hpb=f534cd884051603e9f0368b912afa355e7a2310f;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index 0e93c4e9..b67b9ff8 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -73,6 +73,7 @@ $systime = 0; # the time now (in seconds) $version = "1.35"; # the version no of the software $starttime = 0; # the starting time of the cluster $lockfn = "cluster.lock"; # lock file name +@outstanding_connects = (); # list of outstanding connects # handle disconnections sub disconnect @@ -229,6 +230,7 @@ sub reap { $SIG{'CHLD'} = \&reap; my $cpid = wait; + @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