Bug #68229 [NEW]: FastCGI process management doesn't work if SIGCHLD is inherited as SIG_INT

From: Date: Wed, 15 Oct 2014 01:16:22 +0000
Subject: Bug #68229 [NEW]: FastCGI process management doesn't work if SIGCHLD is inherited as SIG_INT
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188087@lists.php.net to get a copy of this message
From: fredrik at dolda2000 dot com Operating system: Any POSIX PHP version: master-Git-2014-10-15 (Git) Package: CGI/CLI related Bug Type: Bug Bug description:FastCGI process management doesn't work if SIGCHLD is inherited as SIG_INT Description: ------------ If PHP is started in FastCGI mode managing several child workers, and the SIGCHLD handler is inherited as SIG_IGN from the parent process, the wait() loop doesn't work as intended, since wait() does not report auto-reaped children. Instead, it will start looping indefinitely once all children have exited, since wait() will start returning ECHILD before exit_signal has been set, eating CPU until killed. Inheriting SIGCHLD as SIG_IGN may arguably be a rare condition, but it probably doesn't hurt to reset it to SIG_DFL, since PHP does depend on it for proper behavior. -- Edit bug report at https://bugs.php.net/bug.php?id=68229&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68229&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68229&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68229&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68229&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68229&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68229&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68229&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68229&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68229&r=support Expected behavior: https://bugs.php.net/fix.php?id=68229&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68229&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68229&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68229&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68229&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68229&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68229&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68229&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68229&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68229&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68229&r=mysqlcfg

« previous php.bugs (#188087) next »