X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fwinclient.pl;h=a8188b9dcb49abb5d5137ff6104b9f31b2d2fc87;hb=ba49813ff2ce03b9b92c16810f74afeae10c28ca;hp=cf0da0a2ffef78deeceeac86b0356e9a8e3f64e1;hpb=939f8bb6109d870978d7db849136c8a2aa945e4d;p=spider.git diff --git a/perl/winclient.pl b/perl/winclient.pl index cf0da0a2..a8188b9d 100755 --- a/perl/winclient.pl +++ b/perl/winclient.pl @@ -77,13 +77,14 @@ if ($childpid) { my ($sort, $call, $line) = $msg =~ /^(\w)([^\|]+)\|(.*)$/; if ($sort eq 'Z') { kill 'TERM', $childpid; + exit(0); } elsif ($sort eq 'E' || $sort eq 'B') { ; } else { # newline ends all lines except a prompt $lastend = $end; $end = "\n"; - if ($line =~ /^$call de $mycall\s+\d+-\w\w\w-\d+\s+\d+Z >$/) { + if ($line =~ /^$call de $mycall\s+\d+-\w\w\w-\d+\s+\d+Z >$/o) { $end = ' '; } my $begin = ($lastend eq "\n") ? '' : "\n";