From: [EMAIL PROTECTED]
Operating system: Debian GNU/Linux (kernel 2.2.16)
PHP version: 4.1.2
PHP Bug Type: Program Execution
Bug description: program spawned by backticks or shell_exec does not die when user
cancels page
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 bug report at http://bugs.php.net/?id=16032&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16032&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16032&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16032&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16032&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16032&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16032&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16032&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16032&r=submittedtwice