Skip to content

Commit

Permalink
use hup_children
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Dec 2, 2011
1 parent 5115bfa commit 9e7d0bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Starman/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ use Net::Server::SIG qw(register_sig);
# Override Net::Server's HUP handling - just restart all the workers and that's about it
sub sig_hup {
my $self = shift;
for my $pid (keys %{$self->{server}->{children}}) {
kill 1 => $pid;
}
$self->hup_children;
}

sub run {
Expand Down

0 comments on commit 9e7d0bb

Please sign in to comment.