Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Process] Always call proc_close #16875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2015
Merged

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15617
License MIT
Doc PR -

This should fix one more transient test, and a wrong behavior.

{
$this->processPipes->close();
if (is_resource($this->process)) {
if ($wait && is_resource($this->process)) {
$exitcode = proc_close($this->process);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this lead to zombie processes now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be, but only in cases where sending SIGTERM + SIGKILL did not have any effect, which means the Process object is stuck is an infinite waiting loop.

@nicolas-grekas
Copy link
Member Author

proc_open is now always called, ready again :)

@nicolas-grekas nicolas-grekas changed the title [Process] Don't wait for the process after timeout [Process] Always call proc_close Dec 8, 2015
@nicolas-grekas nicolas-grekas merged commit ccb67d7 into symfony:2.3 Dec 8, 2015
nicolas-grekas added a commit that referenced this pull request Dec 8, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

[Process] Always call proc_close

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15617
| License       | MIT
| Doc PR        | -

This should fix one more transient test, and a wrong behavior.

Commits
-------

ccb67d7 [Process] Always call proc_close
@nicolas-grekas nicolas-grekas deleted the fix23 branch December 8, 2015 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants