X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshutdown.pl;h=d90cfeeafe90cb384d141d7c4ff3b9beb585b372;hb=refs%2Fheads%2Fnew-spawn;hp=1b3d8bb2432ad4f423e11c8909e57433d4059bcd;hpb=e06d5fa736172c044f769e791c23e7cd05ae3445;p=spider.git diff --git a/cmd/shutdown.pl b/cmd/shutdown.pl index 1b3d8bb2..d90cfeea 100644 --- a/cmd/shutdown.pl +++ b/cmd/shutdown.pl @@ -1,19 +1,16 @@ # # the shutdown command # -# $Id$ +# # my $self = shift; my $call = $self->call; my $ref; return (1, $self->msg('e5')) unless $self->priv >= 5; foreach $ref (DXChannel::get_all()) { - $ref->send_now("D", DXProt::pc39($main::mycall, "Shutdown by $call")) if $ref->is_node && $ref != $DXProt::me; - $ref->send_now("D", $self->msg('shutting')) if $ref->is_user; + $ref->send($self->msg('shutting')) if $ref->is_user; } -# give some time for the buffers to empty and then shutdown (see cluster.pl) -$main::decease = 250; - +$main::ending = 10; -return (1, $self->msg('shutting')); +return (1);