1. cluster seems to have a memory leak, put DESTROY functions in where
[spider.git] / perl / client.pl
index 8a19719ef54ec26333bc6f140d5af1fb3c11e1b2..fb86542f394dbfdf760d56acb1fe0402c5d0eceb 100755 (executable)
@@ -225,6 +225,8 @@ sub doconnect
                $rfh = new IO::File;
                $wfh = new IO::File;
                $pid = open2($rfh, $wfh, "$line") or die "can't do $line $!";
+               die "no receive channel $!" unless $rfh;
+               die "no transmit channel $!" unless $wfh;
                dbg('connect', "got pid $pid");
                $wfh->autoflush(1);
        } else {