use Msg;
use DXVars;
use DXDebug;
-use DXUser;
use IO::File;
use IO::Socket;
use IPC::Open2;
$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') {
$SIG{'TERM'} = \&sig_term;
$SIG{'HUP'} = 'IGNORE';
$SIG{'CHLD'} = \&sig_chld;
+$SIG{'ALRM'} = \&timeout;
dbgadd('connect');
}
+ use DXUser;
+
DXUser->init($userfn);
# allow a login from an existing user. I could create a user but
open(IN, "$cpath/$mcall") or cease(2);
@in = <IN>;
close IN;
-
+
alarm($timeout);
for (@in) {