php.net |  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
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vituko at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-08 22:52 UTC] vituko at gmail dot com
Description:
------------
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 :

MINIT :
php_add_tick_function(pcntl_signal_dispatch);

Move that line to RINIT.
And add to RSHUTDOWN :
php_remove_tick_function(pcntl_signal_dispatch);

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.

Thanks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 10:36 UTC] jani@php.net
-Package: Feature/Change Request +Package: PCNTL related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 22:01:26 2019 UTC