From: osama at wayout dot net Operating system: Linux PHP version: 5.1.0b2 PHP Bug Type: Feature/Change Request Bug description: proc_terminate does not really kill terminate the process
Description: ------------ I am using PHP5.1.0b1 As per the documentation, proc_terminate should send the process started by proc_open a specified signal. However, practically speaking, it actually sends the signal to the shell (/bin/sh) process and not to the process that was started by the shell. This usually causes a problem since the signal never reaches the actual process and hence it never terminates (i.e. or receives the signal). For example, when sending the SIGTERM to a process started by proc_open, only the /bin/sh process terminates while the main process (tcpdump in my case) never terminates. I am using pipes to communicate to the process. Reproduce code: --------------- Not needed. -- Edit bug report at http://bugs.php.net/?id=33505&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33505&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33505&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33505&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33505&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33505&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33505&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33505&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33505&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33505&r=support Expected behavior: http://bugs.php.net/fix.php?id=33505&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33505&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33505&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33505&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33505&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33505&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33505&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33505&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33505&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33505&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33505&r=mysqlcfg
