Added warning, restart doesn't work together with fork
[catagits/Catalyst-Runtime.git] / 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 = $$;