X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FHTTP%2FRestarter.pm;h=42f57ddb39078beeb5a97678acae8399e2b923b8;hb=57a87bb3b029e5702f5fd0b7925cf6ab9c243596;hp=cfe0e9ad9e2991943cd572480821a9fa6cb6c861;hpb=49e0f58dc3b6e980b064dc85ed73bfaf092b4cd4;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/HTTP/Restarter.pm b/lib/Catalyst/Engine/HTTP/Restarter.pm index cfe0e9a..42f57dd 100644 --- a/lib/Catalyst/Engine/HTTP/Restarter.pm +++ b/lib/Catalyst/Engine/HTTP/Restarter.pm @@ -12,10 +12,7 @@ sub run { $options ||= {}; # Setup restarter - my $restarter; - my $parent = $$; - - unless ( $restarter = fork ) { + unless ( my $restarter = fork ) { # Prepare close STDIN; @@ -54,7 +51,7 @@ sub run { # build the Kill request my $req = - HTTP::Request->new( 'KILL', '/', + HTTP::Request->new( 'RESTART', '/', HTTP::Headers->new( 'Connection' => 'close' ) ); $req->protocol('HTTP/1.0');