-#!/usr/bin/perl
+#!/usr/bin/perl -w
#
# A thing that implements dxcluster 'protocol'
#
use Msg;
use DXVars;
use DXDebug;
-use DXUser;
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
dbg('connect', "killing $pid");
kill(9, $pid);
}
+ dbgclose();
+# $SIG{__WARN__} = sub {my $a = shift; cluck($a); };
sleep(1);
exit(0);
}
$mode = $line; # set echo mode from cluster
my $term = POSIX::Termios->new;
$term->getattr(fileno($sock));
- $term->setflag( &POSIX::ISIG );
+ $term->setiflag( 0 );
+ $term->setoflag( 0 );
$term->setattr(fileno($sock), &POSIX::TCSANOW );
}
} elsif ($sort eq 'I') {
}
+ use DXUser;
+
DXUser->init($userfn);
# allow a login from an existing user. I could create a user but