-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
Conversation
nicolas-grekas
commented
Dec 2, 2015
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #15617 |
License | MIT |
Doc PR | - |
Is the HHVM failure in the process component test related to the change you made here ? |
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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
Thank you @nicolas-grekas. |
…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