Don't ignore SIGCHLD while handling requests with the dev server.
Florian Ragwitz [Wed, 4 Feb 2009 16:42:13 +0000 (16:42 +0000)]
Closes RT#42962.

lib/Catalyst/Engine/HTTP.pm

index bacc6be..c3981bb 100644 (file)
@@ -382,7 +382,14 @@ sub _handler {
         }
 
         # Pass flow control to Catalyst
-        $class->handle_request;
+        {
+            # FIXME: don't ignore SIGCHLD while handling requests so system()
+            # et al. work within actions. it might be a little risky to do that
+            # this far out, but then again it's only the dev server anyway.
+            local $SIG{CHLD} = 'DEFAULT';
+
+            $class->handle_request;
+        }
     
         DEBUG && warn "Request done\n";