-#!/usr/bin/perl
+#!/usr/bin/perl -w
#
# A thing that implements dxcluster 'protocol'
#
use IO::Socket;
use IPC::Open2;
use Net::Telnet qw(TELOPT_ECHO);
-use Carp;
+use Carp qw{cluck};
# cease communications
sub cease
dbg('connect', "killing $pid");
kill(9, $pid);
}
+ dbgclose();
+# $SIG{__WARN__} = sub {my $a = shift; cluck($a); };
sleep(1);
exit(0);
}
open IN, "$data/offline" or die;
while (<IN>) {
s/\n/\r/og if $mode == 1;
- print $stdout;
+ print $stdout $_;
}
close IN;
} else {