remove uninit message
[spider.git] / perl / winclient.pl
index 55c87992e82d61f42c569debb4eb382a3241b2d1..f7f264b9b7f1dd6d1687fb74b40266b9092da429 100755 (executable)
@@ -70,13 +70,14 @@ die "can't fork: $!" unless defined($childpid = fork());
 
 # the communication .....
 if ($childpid) {
-       my ($lastend, $end);
+       my ($lastend, $end) = ("\n", "\n");
        
        STDOUT->autoflush(1);
     while (defined (my $msg = <$handle>)) {
                my ($sort, $call, $line) = $msg =~ /^(\w)([^\|]+)\|(.*)$/;
                if ($sort eq 'Z') {
                        kill 'TERM', $childpid;
+                       exit(0);
                } elsif ($sort eq 'E' || $sort eq 'B') {
                        ;
                } else {