[libfcgi-procmanager-perl] 02/05: Reset SIGCHLD to default

Florian Schlichting fsfs at moszumanska.debian.org
Mon Sep 18 21:29:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to annotated tag 0.23
in repository libfcgi-procmanager-perl.

commit f969c0660ebbf43a72456197871e6a18fc430c31
Author: Tomas Doran <bobtfish at bobtfish.net>
Date:   Tue Sep 27 14:40:37 2011 +0100

    Reset SIGCHLD to default
---
 ChangeLog               | 3 +++
 lib/FCGI/ProcManager.pm | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 0c47a95..cfd5438 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 0.23
     * Fix pm_wait routine to exit without a warning
     * Fix pm_wait to correctly detect child processes which have died.
+    * Fix to return SIGCHLD handler to it's default state in the
+      pm_manage loop so that loading code which sets SIGCHLD to ignore
+      won't interfear with normal operation.
 
 0.22 2011-08-04 Tomas Doran  <bobtfish at bobtfish.net>
     * Ship a version of FCGI::ProcManager::Constrainted which actually
diff --git a/lib/FCGI/ProcManager.pm b/lib/FCGI/ProcManager.pm
index e1cc8be..0bff7cf 100644
--- a/lib/FCGI/ProcManager.pm
+++ b/lib/FCGI/ProcManager.pm
@@ -181,6 +181,9 @@ sub pm_manage {
   my ($this,%values) = self_or_default(@_);
   map { $this->pm_parameter($_,$values{$_}) } keys %values;
 
+  local $SIG{CHLD}; # Replace the SIGCHLD default handler in case
+                    # somebody shit on it whilst loading code.
+
   # skip to handling now if we won't be managing any processes.
   $this->n_processes() or return;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libfcgi-procmanager-perl.git



More information about the Pkg-perl-cvs-commits mailing list