X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshutdown.pl;h=30592ad0697c751d388611b37261a8445529920a;hb=refs%2Fheads%2Fip_address;hp=4ee21ebade351aae062ff0b6029a6727d1f2a589;hpb=0ff070609e2069ecd89023fc6a6ffd5bfd5414d5;p=spider.git diff --git a/cmd/shutdown.pl b/cmd/shutdown.pl index 4ee21eba..30592ad0 100644 --- a/cmd/shutdown.pl +++ b/cmd/shutdown.pl @@ -1,19 +1,17 @@ # # 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::decease = 25; return (1);