[Catalyst-commits] r6841 - in trunk/Catalyst-Runtime: .
lib/Catalyst/Engine
andyg at dev.catalyst.perl.org
andyg at dev.catalyst.perl.org
Wed Sep 5 20:46:43 GMT 2007
Author: andyg
Date: 2007-09-05 20:46:43 +0100 (Wed, 05 Sep 2007)
New Revision: 6841
Modified:
trunk/Catalyst-Runtime/Changes
trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm
Log:
Return child PID from HTTP engine when run with 'background' option
Modified: trunk/Catalyst-Runtime/Changes
===================================================================
--- trunk/Catalyst-Runtime/Changes 2007-09-05 12:38:30 UTC (rev 6840)
+++ trunk/Catalyst-Runtime/Changes 2007-09-05 19:46:43 UTC (rev 6841)
@@ -1,7 +1,9 @@
# This file documents the revision history for Perl extension Catalyst.
5.7011
- - Patch for emacs temp files with module::pluggable::object from rolsky
+ - Patch for emacs temp files with module::pluggable::object. (Dave Rolsky)
+ - Return child PID from the HTTP engine when run with the 'background' option.
+ (Emanuele Zeppieri)
- Fixed bug in HTTP engine where writes could fail with
'Resource temporarily unavailable'.
Modified: trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm
===================================================================
--- trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm 2007-09-05 12:38:30 UTC (rev 6840)
+++ trunk/Catalyst-Runtime/lib/Catalyst/Engine/HTTP.pm 2007-09-05 19:46:43 UTC (rev 6841)
@@ -184,7 +184,7 @@
if ($options->{background}) {
my $child = fork;
die "Can't fork: $!" unless defined($child);
- exit if $child;
+ return $child if $child;
}
my $restart = 0;
More information about the Catalyst-commits
mailing list