X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fclient.pl;h=91d4add615bf049cc2fbaa3380c0c99437878a83;hb=f7ce6f45eae627c1368ffea0e1e56e84fec676be;hp=bc2d46c7f9b2e322b55275f1991b91fd51133e8b;hpb=632bda2671a8b0cf73b1a0bffa7b906c8744b14f;p=spider.git diff --git a/perl/client.pl b/perl/client.pl index bc2d46c7..91d4add6 100755 --- a/perl/client.pl +++ b/perl/client.pl @@ -46,14 +46,13 @@ use Net::Telnet qw(TELOPT_ECHO); use IO::File; use IO::Socket; use IPC::Open2; -use Carp qw{cluck}; # cease communications sub cease { my $sendz = shift; if ($conn && $sendz) { - $conn->send_now("Z$call|bye...\n"); + $conn->send_now("Z$call|bye..."); sleep(1); } $stdout->flush if $stdout; @@ -148,7 +147,13 @@ sub rec_socket $buffered = $line; # set buffered or unbuffered } elsif ($sort eq 'Z') { # end, disconnect, go, away ..... cease(0); - } + } + + # ****************************************************** + # ****************************************************** + # any other sorts that might happen are silently ignored. + # ****************************************************** + # ****************************************************** } $lasttime = time; }