[Catalyst-commits] r6206 - in trunk/Catalyst-Engine-HTTP-POE: . lib/Catalyst/Engine/HTTP

andyg at dev.catalyst.perl.org andyg at dev.catalyst.perl.org
Mon Mar 26 20:21:08 GMT 2007


Author: andyg
Date: 2007-03-26 20:21:08 +0100 (Mon, 26 Mar 2007)
New Revision: 6206

Modified:
   trunk/Catalyst-Engine-HTTP-POE/Changes
   trunk/Catalyst-Engine-HTTP-POE/lib/Catalyst/Engine/HTTP/POE.pm
Log:
POE engine: support SIGHUP

Modified: trunk/Catalyst-Engine-HTTP-POE/Changes
===================================================================
--- trunk/Catalyst-Engine-HTTP-POE/Changes	2007-03-26 19:06:13 UTC (rev 6205)
+++ trunk/Catalyst-Engine-HTTP-POE/Changes	2007-03-26 19:21:08 UTC (rev 6206)
@@ -1,6 +1,7 @@
 This file documents the revision history for Catalyst::Engine::HTTP::POE.
 
 0.07
+        - Sending SIGHUP to the server will now cause it to restart.
         - Removed time prefix from warn calls.
         - Allow custom alias to be passed in.
         - Added $kernel->call('status') method for retrieving current status.

Modified: trunk/Catalyst-Engine-HTTP-POE/lib/Catalyst/Engine/HTTP/POE.pm
===================================================================
--- trunk/Catalyst-Engine-HTTP-POE/lib/Catalyst/Engine/HTTP/POE.pm	2007-03-26 19:06:13 UTC (rev 6205)
+++ trunk/Catalyst-Engine-HTTP-POE/lib/Catalyst/Engine/HTTP/POE.pm	2007-03-26 19:21:08 UTC (rev 6206)
@@ -142,6 +142,9 @@
     # shutdown on INT
     $kernel->sig( INT => 'shutdown' );
     
+    # restart on HUP
+    $kernel->sig( HUP => 'restart' );
+    
     # Pre-fork if requested
     $self->{config}->{options}->{max_proc} ||= MAX_PROC;
     if ( $self->{config}->{options}->{max_proc} > 1 ) {




More information about the Catalyst-commits mailing list