projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed comments to reflect reality in CmdAlias
[spider.git]
/
perl
/
client.pl
diff --git
a/perl/client.pl
b/perl/client.pl
index 6358d0225f6e4ad7fa1ae02f781ff4fff676cae8..4a4069f07313c0a6d567bbb14a90e76eb499224d 100755
(executable)
--- a/
perl/client.pl
+++ b/
perl/client.pl
@@
-41,7
+41,6
@@
BEGIN {
use Msg;
use DXVars;
use DXDebug;
use Msg;
use DXVars;
use DXDebug;
-use DXUser;
use IO::File;
use IO::Socket;
use IPC::Open2;
use IO::File;
use IO::Socket;
use IPC::Open2;
@@
-128,7
+127,8
@@
sub rec_socket
$mode = $line; # set echo mode from cluster
my $term = POSIX::Termios->new;
$term->getattr(fileno($sock));
$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') {
$term->setattr(fileno($sock), &POSIX::TCSANOW );
}
} elsif ($sort eq 'I') {
@@
-345,6
+345,7
@@
$SIG{'INT'} = \&sig_term;
$SIG{'TERM'} = \&sig_term;
$SIG{'HUP'} = 'IGNORE';
$SIG{'CHLD'} = \&sig_chld;
$SIG{'TERM'} = \&sig_term;
$SIG{'HUP'} = 'IGNORE';
$SIG{'CHLD'} = \&sig_chld;
+$SIG{'ALRM'} = \&timeout;
dbgadd('connect');
dbgadd('connect');
@@
-364,6
+365,8
@@
if ($loginreq) {
}
}
+ use DXUser;
+
DXUser->init($userfn);
# allow a login from an existing user. I could create a user but
DXUser->init($userfn);
# allow a login from an existing user. I could create a user but
@@
-415,7
+418,7
@@
if ($connsort eq "connect") {
open(IN, "$cpath/$mcall") or cease(2);
@in = <IN>;
close IN;
open(IN, "$cpath/$mcall") or cease(2);
@in = <IN>;
close IN;
-
+
alarm($timeout);
for (@in) {
alarm($timeout);
for (@in) {