From:             vituko at gmail dot com
Operating system: Debian
PHP version:      5.3.1RC3
PHP Bug Type:     Feature/Change Request
Bug description:  pcntl signals and SAPIs

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


-- 
Edit bug report at http://bugs.php.net/?id=50116&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50116&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50116&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50116&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50116&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50116&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50116&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50116&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50116&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50116&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50116&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50116&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50116&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50116&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50116&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50116&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50116&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50116&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50116&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50116&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50116&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50116&r=mysqlcfg

Reply via email to