#37758 [Opn]: SIGINT signals screw with further posix_kill() calls
ID: 37758
User updated by: aeolianmeson at blitzeclipse dot com
Reported By: aeolianmeson at blitzeclipse dot com
Status: Open
Bug Type: Semaphore related
Operating System: Fed4
PHP Version: 5.1.4
New Comment:
I was wondering if there was some change in the status of this issue.
Dustin
Previous Comments:
------------------------------------------------------------------------
[2006-06-10 20:28:41] aeolianmeson at blitzeclipse dot com
Also, I've noticed that even when SIGINT is handled, it will close down
children. I could draw up a program if this appears to be unrelated.
------------------------------------------------------------------------
[2006-06-09 08:06:12] aeolianmeson at blitzeclipse dot com
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 this bug report at http://bugs.php.net/?id=37758&edit=1
Thread (4 messages)