|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50116 pcntl signals and SAPIs
Submitted: 2009-11-08 22:52 UTC Modified: 2010-11-24 10:36 UTC
Avg. Score:4.5 ± 0.5
Reproduced:0 of 1 (0.0%)
From: vituko at gmail dot com Assigned:
Status: Open Package: PCNTL related
PHP Version: 5.3.1RC3 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
25 + 30 = ?
Subscribe to this entry?

 [2009-11-08 22:52 UTC] vituko at gmail dot com
mod_php and fastcgi
The second request that registers a signal handler in the same process : the signal is catched but the callback is not called.

I looked a litle in pcntl.c and found a possible workarround :


Move that line to RINIT.
And add to RSHUTDOWN :

I know that pcntl is not officialy supported in such envs (but fastcgi...), but if it had no further implications, it would be cool to have async signal handlers in web server contexts.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 10:36 UTC]
-Package: Feature/Change Request +Package: PCNTL related
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jan 28 03:03:45 2023 UTC