capitalise things
[spider.git] / perl / cluster.pl
index 3e9a5a1152c10f9fd51299136c864def3de44398..a126b20b8f91c7cb4efa62b1db9673f08ee10344 100755 (executable)
@@ -245,7 +245,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 +377,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);