added a not found message to sh/qrz
[spider.git] / perl / cluster.pl
index a11626a233479cc7fa5885fb9870c4513782e5a7..995500ca934239b4ca18ec6ba580d9ef96f8e3c8 100755 (executable)
@@ -316,7 +316,7 @@ STDOUT->autoflush(1);
 Log('cluster', "DXSpider V$version started");
 
 # banner
-dbg('err', "DXSpider DX Cluster Version $version", "Copyright (c) 1998-2000 Dirk Koopman G1TLH");
+dbg('err', "DXSpider DX Cluster Version $version", "Copyright (c) 1998-2001 Dirk Koopman G1TLH");
 
 # load Prefixes
 dbg('err', "loading prefixes ...");
@@ -338,21 +338,23 @@ Msg->new_server("$clusteraddr", $clusterport, \&login);
 dbg('err', "load badwords: " . (BadWords::load or "Ok"));
 
 # prime some signals
-$SIG{INT} = \&cease;
-$SIG{TERM} = \&cease;
-$SIG{HUP} = 'IGNORE';
-$SIG{CHLD} = sub { $zombies++ };
-
-$SIG{PIPE} = sub {     dbg('err', "Broken PIPE signal received"); };
-$SIG{IO} = sub {       dbg('err', "SIGIO received"); };
-$SIG{WINCH} = $SIG{STOP} = $SIG{CONT} = 'IGNORE';
-$SIG{KILL} = 'DEFAULT';     # as if it matters....
-
-# catch the rest with a hopeful message
-for (keys %SIG) {
-       if (!$SIG{$_}) {
-#              dbg('chan', "Catching SIG $_");
-               $SIG{$_} = sub { my $sig = shift;       DXDebug::confess("Caught signal $sig");  }; 
+unless ($^O =~ /^MS/) {
+       $SIG{INT} = \&cease;
+       $SIG{TERM} = \&cease;
+       $SIG{HUP} = 'IGNORE';
+       $SIG{CHLD} = sub { $zombies++ };
+       
+       $SIG{PIPE} = sub {      dbg('err', "Broken PIPE signal received"); };
+       $SIG{IO} = sub {        dbg('err', "SIGIO received"); };
+       $SIG{WINCH} = $SIG{STOP} = $SIG{CONT} = 'IGNORE';
+       $SIG{KILL} = 'DEFAULT';     # as if it matters....
+
+       # catch the rest with a hopeful message
+       for (keys %SIG) {
+               if (!$SIG{$_}) {
+                       #               dbg('chan', "Catching SIG $_");
+                       $SIG{$_} = sub { my $sig = shift;       DXDebug::confess("Caught signal $sig");  }; 
+               }
        }
 }