We need to capture @ARGV in the restarter, for the benefit of Win32
[catagits/Catalyst-Devel.git] / lib / Catalyst / Helper.pm
index 52d40fe..1798995 100644 (file)
@@ -898,12 +898,6 @@ GetOptions(
 
 pod2usage(1) if $help;
 
-# as the IIS doesn't like output to STDERR keep it at STDOUT, otherwise the
-# server will return "Connection Interrupted"
-if ( $^O eq 'MSWin32' && exists($ENV{APP_POOL_ID}) ) {
-    $keep_stderr = 1;
-}
-
 [% name %]->run(
     $listen,
     {   nproc   => $nproc,
@@ -1057,6 +1051,7 @@ if ( $restart ) {
     my $restarter = $subclass->new(
         %args,
         start_sub => $runner,
+        argv      => \@argv,
     );
 
     $restarter->run_and_watch;