#37758 [Opn->Fbk]: SIGINT signals screw with further posix_kill() calls
ID: 37758
Updated by: tony2001@php.net
Reported By: aeolianmeson at blitzeclipse dot com
-Status: Open
+Status: Feedback
Bug Type: Semaphore related
Operating System: Fed4
PHP Version: 5.1.4
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-06-19 02:36:21] aeolianmeson at blitzeclipse dot com
I was wondering if there was some change in the status of this issue.
Dustin
------------------------------------------------------------------------
[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)