#16032 [Dup->Bgs]: program spawned by backticks or shell_exec does not die when user cancels page

From: Date: Tue, 25 Feb 2003 08:02:25 +0000
Subject: #16032 [Dup->Bgs]: program spawned by backticks or shell_exec does not die when user cancels page
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34164@lists.php.net to get a copy of this message
ID: 16032 Updated by: sniper@php.net Reported By: reed at zerohour dot net -Status: Duplicate +Status: Bogus Bug Type: Program Execution Operating System: Debian GNU/Linux (kernel 2.2.16) PHP Version: 4.1.2 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. see bug #15642 Previous Comments: ------------------------------------------------------------------------ [2002-05-26 14:13:00] derick@php.net Dup of #15642 ------------------------------------------------------------------------ [2002-03-13 01:04:32] reed at zerohour dot net A process spawned by backticks (backquotes) or with shell_exec() hang around indefinitely if I cancel the page while it's running. The program I'm running is a Perl script... $list = mp-list 2>&1; $list2 = shell_exec("mp-list 2>&1"); $status = shell_exec("mp-add $file 2>&1"); (it's taking too long because of a bug in our networking code -- maybe this is why its not dying?) When I do a ps ax (several minutes later) I get a whole bunch of stuff like: 27030 ? S 0:00 /usr/sbin/apache 27031 ? S 0:00 sh -c mp-list 2>&1 27032 ? R 0:23 /usr/bin/perl /usr/local/bin/mp-list Happens when I 'cancel' in MS IE 5 and in OmniWeb (Macintosh browsers). thanks reed ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16032&edit=1

« previous php.bugs (#34164) next »