Ask a Question related to PHP Bugs, Design and Development.
-
nlopess@php.net #1
#39992 [Opn]: proc_terminate() leaves children of child running
ID: 39992
Updated by: [email]nlopess@php.net[/email]
Reported By: [email]nlopess@php.net[/email]
Status: Open
Bug Type: Program Execution
Operating System: linux
PHP Version: 6CVS-2006-12-30 (CVS)
New Comment:
Ah I forgot: removing the "2>&1" part everything works fine.
Previous Comments:
------------------------------------------------------------------------
[2006-12-30 15:52:20] [email]nlopess@php.net[/email]
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 [url]http://bugs.php.net/?id=39992&edit=1[/url]
nlopess@php.net Guest
-
#39322 [NEW]: proc_terminate(): loosing process resource
From: c dot affolter at stepping-stone dot ch Operating system: Linux 2.4 PHP version: 5.1.6 PHP Bug Type: Program Execution... -
#39992 [NEW]: proc_terminate() leaves children of child running
From: nlopess@php.net Operating system: linux PHP version: 6CVS-2006-12-30 (CVS) PHP Bug Type: Program Execution Bug... -
pulling in children of children in XML
Hey all- Newbie to XML here and I have what I *hope* is an easy problem, but I just don't know the answer. And as I have to try and show this by... -
Parent/Child relations - Trying to access child control for save
I have a parent datagrid that has my customer information. For each customer I have a child datagrid with all their part information. In the... -
Placeholder child of child control event problem.
Hi, I have problem with placeholder which contain web user control. I want to add user control in placeholder. For example I have a.aspx and in...



Reply With Quote

