X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=5aef00562c7c45c28442822a7223d431e898f369;hb=7ab16be46aa296e9fba7b063c074bb020a9eb462;hp=3e9a5a1152c10f9fd51299136c864def3de44398;hpb=01ba3df164dca5b803527a4b7db6e5d36a334f91;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index 3e9a5a11..5aef0056 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -38,7 +38,6 @@ BEGIN { close CLLOCK; } - use Msg; use DXVars; use DXDebug; @@ -245,7 +244,7 @@ sub cease sub reap { my $cpid; - while (($cpid = waitpid(-1, WNOHANG)) != -1) { + while (($cpid = waitpid(-1, WNOHANG)) > 0) { dbg('reap', "cpid: $cpid"); @outstanding_connects = grep {$_->{pid} != $cpid} @outstanding_connects; $zombies-- if $zombies > 0; @@ -377,7 +376,6 @@ Spot->init(); dbg('err', "reading in duplicate spot and WWV info ..."); DXProt->init(); - # put in a DXCluster node for us here so we can add users and take them away DXNode->new($DXProt::me, $mycall, 0, 1, $DXProt::myprot_version);