Version 0.24 0.24
Tomas Doran [Tue, 4 Oct 2011 07:26:26 +0000 (08:26 +0100)]
ChangeLog
lib/FCGI/ProcManager.pm
lib/FCGI/ProcManager/Constrained.pm

index 112bd79..745f7c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+0.24 2011-10-04 Tomas Doran  <bobtfish@bobtfish.net>
+    * Further fix to pm_wait routine to find the correct PID and remove it
+      (fixing logical error introduced in the last release), noted by Vadim
+      Dashkevich
+    * Document (somewhat) FCGI::ProcManager::Constrainted
+
 0.23 2011-09-27 Tomas Doran  <bobtfish@bobtfish.net>
     * Fix pm_wait routine to exit without a warning
     * Fix pm_wait to correctly detect child processes which have died.
index 868d1be..e24683a 100644 (file)
@@ -335,7 +335,7 @@ sub pm_wait {
   my ($this) = self_or_default(@_);
 
   # wait for the next server to die.
-  return if (my $pid = wait() < 0);
+  return if ((my $pid = wait()) < 0);
 
   # notify when one of our servers have died.
   delete $this->{PIDS}->{$pid} and
index 5423b68..7b30a31 100644 (file)
@@ -204,3 +204,24 @@ sub _linux_getppid { return Linux::Pid::getppid() }
 
 1;
 
+=head1 NAME
+
+FCGI::ProcManager::Constrained - Process manager with constraints
+
+=head1 SYNOPSIS
+
+    $ENV{PM_MAX_REQUESTS} = 1000;
+    $ENV{PM_SIZECHECK_NUM_REQUESTS} = 10;
+    $ENV{PM_MAX_SIZE} = 4096;
+
+=head1 DESCRIPTION
+
+Subclass of L<FCGI::ProcManager> which adds checks for memory limits
+like L<Apache::SizeLimit>.
+
+=head1 AUTHORS, COPYRIGHT AND LICENSE
+
+See L<FCGI::ProcManager>.
+
+=cut
+