php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33505 proc_terminate does not really kill terminate the process
Submitted: 2005-06-29 10:18 UTC Modified: 2016-12-30 22:56 UTC
Votes:7
Avg. Score:3.6 ± 1.5
Reproduced:6 of 6 (100.0%)
Same Version:2 (33.3%)
Same OS:5 (83.3%)
From: osama at wayout dot net Assigned:
Status: Open Package: Program Execution
PHP Version: 5.1.0b2 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-06-29 10:18 UTC] osama at wayout dot net
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 22:56 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Program Execution
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 26 18:01:26 2019 UTC