X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCron.pm;h=1c698f751e5b045808c1ead66791125a848924c2;hb=4f3bdfa16cf0d5adf08ef13fc06384e39db485c6;hp=5bb1242283d635e7f11b5161a7178b62950a088a;hpb=0a35942621158fae0bca29f3c70c63a97fc4e691;p=spider.git diff --git a/perl/DXCron.pm b/perl/DXCron.pm index 5bb12422..1c698f75 100644 --- a/perl/DXCron.pm +++ b/perl/DXCron.pm @@ -217,14 +217,7 @@ sub disconnect { my $call = uc shift; my $dxchan = DXChannel->get($call); - if ($dxchan) { - if ($dxchan->is_ak1a) { - $dxchan->send_now("D", DXProt::pc39($main::mycall, "$main::mycall DXCron")); - } else { - $dxchan->send_now('D', ""); - } - $dxchan->disconnect; - } + $dxchan->disconnect if $dxchan; } # start a connect process off @@ -255,7 +248,6 @@ sub spawn # in child, unset warnings, disable debugging and general clean up from us $^W = 0; eval "{ package DB; sub DB {} }"; - alarm(0); DXChannel::closeall(); for (@main::listeners) { $_->close_server; @@ -263,6 +255,7 @@ sub spawn unless ($^O =~ /^MS/) { $SIG{HUP} = 'IGNORE'; $SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT'; + alarm(0); } exec "$line" or dbg('cron', "exec '$line' failed $!"); }