Added warning, restart doesn't work together with fork
Sebastian Riedel [Thu, 10 Nov 2005 16:56:41 +0000 (16:56 +0000)]
lib/Catalyst/Engine/HTTP/Restarter.pm

index cfe0e9a..0c73ebd 100644 (file)
@@ -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 = $$;