Permalink
Browse files

fix broken support for slow restart (commit 89b50d2)

  • Loading branch information...
1 parent da71466 commit b676c4b325ce08286f250387f232f4702819fb9e @kazuho committed Oct 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Plack/Handler/Starlet.pm
@@ -62,7 +62,7 @@ sub run {
$pm_args{err_respawn_interval} = $self->{err_respawn_interval};
}
my $pm = Parallel::Prefork->new(\%pm_args);
- while ($pm->signal_received ne 'TERM') {
+ while ($pm->signal_received !~ /^(TERM|USR1)$/) {
$pm->start and next;
$self->accept_loop($app, $self->_calc_reqs_per_child());
$pm->finish;

0 comments on commit b676c4b

Please sign in to comment.