Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

do it the right way

  • Loading branch information...
commit da71466f3037bf36123cba108a11a83891987e82 1 parent 83b1035
@kazuho authored
Showing with 2 additions and 4 deletions.
  1. +1 −1  lib/Plack/Handler/Starlet.pm
  2. +1 −3 lib/Starlet/Server.pm
View
2  lib/Plack/Handler/Starlet.pm
@@ -55,7 +55,7 @@ sub run {
},
);
if (defined $self->{spawn_interval}) {
- $pm_args{trap_signals}{HUP} = [ 'TERM', $self->{spawn_interval} ];
+ $pm_args{trap_signals}{USR1} = [ 'TERM', $self->{spawn_interval} ];
$pm_args{spawn_interval} = $self->{spawn_interval};
}
if (defined $self->{err_respawn_interval}) {
View
4 lib/Starlet/Server.pm
@@ -40,9 +40,7 @@ sub new {
max_reqs_per_child => (
$args{max_reqs_per_child} || $args{max_requests} || 100,
),
- spawn_interval => (
- defined $args{spawn_interval} ? $args{spawn_interval} : undef,
- ),
+ spawn_interval => $args{spawn_interval} || 0,
err_respawn_interval => (
defined $args{err_respawn_interval}
? $args{err_respawn_interval} : undef,
Please sign in to comment.
Something went wrong with that request. Please try again.