[Catalyst-commits] r9197 - Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Wed Feb 4 16:42:13 GMT 2009


Author: rafl
Date: 2009-02-04 16:42:13 +0000 (Wed, 04 Feb 2009)
New Revision: 9197

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine/HTTP.pm
Log:
Don't ignore SIGCHLD while handling requests with the dev server.

Closes RT#42962.

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine/HTTP.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine/HTTP.pm	2009-02-04 16:42:07 UTC (rev 9196)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine/HTTP.pm	2009-02-04 16:42:13 UTC (rev 9197)
@@ -382,7 +382,14 @@
         }
 
         # 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";
     




More information about the Catalyst-commits mailing list