#37758 [NEW]: SIGINT signals screw with further posix_kill() calls
| From: | aeolianmeson at blitzeclipse dot com | Date: | Fri, 09 Jun 2006 08:06:12 +0000 |
| Subject: | #37758 [NEW]: SIGINT signals screw with further posix_kill() calls | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98225@lists.php.net to get a copy of this message | ||
From: aeolianmeson at blitzeclipse dot com
Operating system: Fed4
PHP version: 5.1.4
PHP Bug Type: Semaphore related
Bug description: SIGINT signals screw with further posix_kill() calls
Description:
------------
When a SIGINT is sent via CTRL+C or CTRL+BREAK, the handler is called. If
this handler sends a SIGTERM to other children, the signals are not
received.
SIGINT can be sent via posix_kill() and it work exactly as expected-- This
only applies when initiated via a hard break.
SIGTERM will also work perfectly.
Reproduce code:
---------------
http://www.blitzeclipse.com:81/breakhandle.php
Expected result:
----------------
Once the main process, its child, and that child's child are up, pressing
CTRL+C or CTRL+BREAK should cause the first process to terminate the
second process, and the second process should then terminate the third
process.
Actual result:
--------------
When CTRL+C or CTRL+BREAK is pressed, the first process terminates, and
nothing else responds.
--
Edit bug report at http://bugs.php.net/?id=37758&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37758&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37758&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37758&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37758&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37758&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37758&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37758&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37758&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37758&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37758&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37758&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37758&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37758&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37758&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37758&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37758&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37758&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37758&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37758&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37758&r=mysqlcfg