altered band data
[spider.git] / perl / client.pl
index 6358d0225f6e4ad7fa1ae02f781ff4fff676cae8..2392dfa8662f0b1b2d16a83e863281254471c97d 100755 (executable)
@@ -41,7 +41,6 @@ BEGIN {
 use Msg;
 use DXVars;
 use DXDebug;
-use DXUser;
 use IO::File;
 use IO::Socket;
 use IPC::Open2;
@@ -345,6 +344,7 @@ $SIG{'INT'} = \&sig_term;
 $SIG{'TERM'} = \&sig_term;
 $SIG{'HUP'} = 'IGNORE';
 $SIG{'CHLD'} = \&sig_chld;
+$SIG{'ALRM'} = \&timeout;
 
 dbgadd('connect');
 
@@ -364,6 +364,8 @@ if ($loginreq) {
        }
        
 
+       use DXUser;
+       
        DXUser->init($userfn);
        
        # allow a login from an existing user. I could create a user but
@@ -415,7 +417,7 @@ if ($connsort eq "connect") {
        open(IN, "$cpath/$mcall") or cease(2);
        @in = <IN>;
        close IN;
-       
+
        alarm($timeout);
        
        for (@in) {