X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FHTTP%2FRestarter.pm;h=7c0b90fb294b3a51adb68a70d631806c11e4f246;hb=51aec62b22d8fba3142476b542a3a6aa80dd2c14;hp=0c73ebd991d335d3349555ba0ac6010a0ffc15d3;hpb=5303e1782e6a92d80eee93c79d2907dd55a01821;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/HTTP/Restarter.pm b/lib/Catalyst/Engine/HTTP/Restarter.pm index 0c73ebd..7c0b90f 100644 --- a/lib/Catalyst/Engine/HTTP/Restarter.pm +++ b/lib/Catalyst/Engine/HTTP/Restarter.pm @@ -11,14 +11,8 @@ sub run { $options ||= {}; - die "Sorry, but 'restart' doesn't work together with 'fork'.\n" - if $options->{fork}; - # Setup restarter - my $restarter; - my $parent = $$; - - unless ( $restarter = fork ) { + unless ( my $restarter = fork ) { # Prepare close STDIN; @@ -57,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'); @@ -90,11 +84,7 @@ and restart the server when any changes are detected. =head1 METHODS -=over 4 - -=item run - -=back +=head2 run =head1 SEE ALSO