#39992 [Com]: proc_terminate() leaves children of child running
From: amit dot perelman at gmail dot com Date: Mon, 26 Mar 2007 16:49:38 +0000 Subject: #39992 [Com]: proc_terminate() leaves children of child running References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-110810@lists.php.net to get a copy of this message
ID: 39992
Comment by: amit dot perelman at gmail dot com
Reported By: nlopess@php.net
Status: Open
Bug Type: Program Execution
Operating System: linux
PHP Version: 6CVS-2006-12-30 (CVS)
New Comment:
Opps, my mistake. this is still a bug. Will send a patch fixing it.
Previous Comments:
------------------------------------------------------------------------
[2007-03-25 21:28:15] amit dot perelman at gmail dot com
Test it on CVS HEAD and it is not reproduceable. Please test it.
If it still a bug, I will be happy to solve it.
------------------------------------------------------------------------
[2006-12-30 15:54:27] nlopess@php.net
Ah I forgot: removing the "2>&1" part everything works fine.
------------------------------------------------------------------------
[2006-12-30 15:52:20] nlopess@php.net
Description:
------------
With the short reproduce code below, PHP fork()s a new process (sh),
that itself forks a new one (php). proc_terminate() kill()s the sh
process, but the php one doesn't get killed.
I'm not really sure what is causing this problem, but it is breaking
run-tests.php on timeout.
Reproduce code:
---------------
<?php
$cmd='php -r "while(1){}" 2>&1';
$proc = proc_open($cmd, array(), $pipes);
var_dump(proc_terminate($proc));
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39992&edit=1
Thread (15 messages)
- #39992 [Opn]: proc_terminate() leaves children of child running
- #39992 [Com]: proc_terminate() leaves children of child running
- #39992 [Com]: proc_terminate() leaves children of child running
- #39992 [Opn->Fbk]: proc_terminate() leaves children of child running
- #39992 [Fbk->Opn]: proc_terminate() leaves children of child running
- #39992 [Com]: proc_terminate() leaves children of child running
- Bug #39992 [Com]: proc_terminate() leaves children of child running
- Bug #39992 [Com]: proc_terminate() leaves children of child running
- Bug #39992 [Com]: proc_terminate() leaves children of child running
- Bug #39992 [Opn->Fbk]: proc_terminate() leaves children of child running
- Bug #39992 [Fbk->NoF]: proc_terminate() leaves children of child running
- Bug #39992 [Com]: proc_terminate() leaves children of child running
- Bug #39992 [NoF]: proc_terminate() leaves children of child running
- Bug #39992 [Com]: proc_terminate() leaves children of child running
| « previous | php.bugs (#110810) | next » |
|---|