PHP 4.0 Bug #8143 Updated: system()'d programs become zombie processes when the script is aborted

From: Date: Wed, 10 Jan 2001 13:09:20 +0000
Subject: PHP 4.0 Bug #8143 Updated: system()'d programs become zombie processes when the script is aborted
Groups: php.dev 
Request: Send a blank email to php-dev+get-43681@lists.php.net to get a copy of this message
ID: 8143 Updated by: thies Reported By: david@acz.org Old-Status: Analyzed Status: Closed Bug Type: Program Execution Assigned To: Comments: fixed in CVS Previous Comments: --------------------------------------------------------------------------- [2000-12-12 06:10:16] stas@php.net We probably should close what we popen'ed in exec.c on user abort. For this popen'ed handle should be stored in some global, I guess. --------------------------------------------------------------------------- [2000-12-06 16:41:38] david@acz.org PHP is running under Apache 1.3.14 as a loadable module. This bug also occurs under 4.0.4RC3 (from Debian package "php4 4.0.4-0RC3.1"). A copy of the script where this bug was encountered is pasted below. The easiest way to duplicate this bug is to request the page containing the code with a browser and refresh repeatedly (without waiting for the page to fully load). <? system("uname -a"); echo "n"; system("w"); echo "n"; system("df -h"); echo "n"; system("free -mt"); echo "n"; system("ps acux"); echo "n"; system("pstree -c"); ?> --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8143

« previous php.dev (#43681) next »