Bug #16032 Updated: program spawned by backticks or shell_exec does not die when user cancels page

From: Date: Sun, 26 May 2002 18:13:00 +0000
Subject: Bug #16032 Updated: 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-8604@lists.php.net to get a copy of this message
ID: 16032 Updated by: derick@php.net Reported By: reed@zerohour.net -Status: Open +Status: Duplicate Bug Type: Program Execution Operating System: Debian GNU/Linux (kernel 2.2.16) PHP Version: 4.1.2 New Comment: Dup of #15642 Previous Comments: ------------------------------------------------------------------------ [2002-03-13 01:04:32] reed@zerohour.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 (#8604) next »