X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fclient.pl;h=9e948a181a64bee603208586c1573d65ddccf327;hb=5acd1be649672f6e5bd2b4a6772b51cd935ebda9;hp=4a4069f07313c0a6d567bbb14a90e76eb499224d;hpb=cc91428ca79b3cdfdc7733505384f5983ad6c7fa;p=spider.git diff --git a/perl/client.pl b/perl/client.pl index 4a4069f0..9e948a18 100755 --- a/perl/client.pl +++ b/perl/client.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w # # A thing that implements dxcluster 'protocol' # @@ -45,7 +45,7 @@ use IO::File; use IO::Socket; use IPC::Open2; use Net::Telnet qw(TELOPT_ECHO); -use Carp; +use Carp qw{cluck}; # cease communications sub cease @@ -59,6 +59,8 @@ sub cease dbg('connect', "killing $pid"); kill(9, $pid); } + dbgclose(); +# $SIG{__WARN__} = sub {my $a = shift; cluck($a); }; sleep(1); exit(0); } @@ -472,7 +474,7 @@ if (! $conn) { open IN, "$data/offline" or die; while () { s/\n/\r/og if $mode == 1; - print $stdout; + print $stdout $_; } close IN; } else {