Skip to content

[Process] Fix stopping a process on Windows #16813

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 5, 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 -

@stof
Copy link
Member

stof commented Dec 2, 2015

Is the HHVM failure in the process component test related to the change you made here ?

@nicolas-grekas
Copy link
Member Author

HHVM failure is unrelated, it would need an other fix

@@ -838,10 +860,10 @@ public function testMethodsThatNeedATerminatedProcess($method)
$process->stop(0);
$this->fail('A LogicException must have been thrown');
Copy link
Contributor

Choose a reason for hiding this comment

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

These fail conditions in the tests you changed are now useless pretty much. So they can be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

not sure: throw $e still needs $e to be defined

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. Those tests should be rewritten with try...finally in 3.0

usleep(1000);
}

// Don't call ->stop() nor ->close() since it's blocking and we don't care about waiting for the subprocess here
Copy link
Member Author

Choose a reason for hiding this comment

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

calling for review/comments on this change

@stof
Copy link
Member

stof commented Dec 5, 2015

Thank you @nicolas-grekas.

@stof stof merged commit 80fb51c into symfony:2.3 Dec 5, 2015
stof added a commit that referenced this pull request Dec 5, 2015
…kas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Process] Fix stopping a process on Windows

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

Commits
-------

80fb51c [Process] Fix stopping a process on Windows
@nicolas-grekas nicolas-grekas deleted the fix23 branch December 7, 2015 09:04
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