Permalink
Browse files

use hup_children

  • Loading branch information...
1 parent 5115bfa commit 9e7d0bb250947720906b938d9fca4a0ec4f38eb8 @miyagawa committed Dec 2, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Starman/Server.pm
View
@@ -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 {

0 comments on commit 9e7d0bb

Please sign in to comment.