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

Skip to content

Fix wrong loop in Process::wait() method #29021

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

Closed
wants to merge 1 commit into from

Conversation

Nek-
Copy link
Contributor

@Nek- Nek- commented Oct 29, 2018

The while condition was the opposite of the previous while. This was obviously leading to the death of this loop. Loop which was useful according to some people (see #28940), so I just moved the code to the right position.

Q A
Branch? 2.8 (want me to make it against 2.8 ?)
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT

I tested some process execution in order to be sure the code is never executed. I also noticed that there's no CPU issue without this sleep (kubuntu 18.04 / intel i7 2k):
image

The while condition was the opposite of the previous while.
This was obviously leading to the death of this loop. Loop which
was useful according to some people (see symfony#28940), so I just moved
the code to the right position.
@Nek- Nek- force-pushed the fix/wrong-loop-on-wait-for-process branch from 1fcbc53 to b038eb2 Compare October 29, 2018 23:49
@nicolas-grekas
Copy link
Member

bug fix => 2.8 yes :)

@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Oct 30, 2018
@Nek-
Copy link
Contributor Author

Nek- commented Oct 30, 2018

nevermind; this fix is wrong. Everything is useful here.

@Nek- Nek- closed this Oct 30, 2018
@Nek- Nek- deleted the fix/wrong-loop-on-wait-for-process branch October 30, 2018 17:39
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.

3 participants