X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FHTTP%2FRestarter.pm;h=0c73ebd991d335d3349555ba0ac6010a0ffc15d3;hb=5303e1782e6a92d80eee93c79d2907dd55a01821;hp=134e6be1739682e09aeeb59aeb10755909b5f0bb;hpb=1cf1c56a0c68611a361dbb8c797891baf6d0974f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/HTTP/Restarter.pm b/lib/Catalyst/Engine/HTTP/Restarter.pm index 134e6be..0c73ebd 100644 --- a/lib/Catalyst/Engine/HTTP/Restarter.pm +++ b/lib/Catalyst/Engine/HTTP/Restarter.pm @@ -11,6 +11,9 @@ sub run { $options ||= {}; + die "Sorry, but 'restart' doesn't work together with 'fork'.\n" + if $options->{fork}; + # Setup restarter my $restarter; my $parent = $$; @@ -49,7 +52,7 @@ sub run { PeerAddr => $host, PeerPort => $port ) - or die "can't create client socket (is server running?): ", + or die "Can't create client socket (is server running?): ", $!; # build the Kill request @@ -59,7 +62,7 @@ sub run { $req->protocol('HTTP/1.0'); $client->send( $req->as_string ) - or die "can't send restart instruction: ", $!; + or die "Can't send restart instruction: ", $!; $client->close(); exit; }