8000 [Process] Stop the process correctly even if underlying input stream is not closed by joelwurtz · Pull Request #50354 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Process] Stop the process correctly even if underlying input stream is not closed #50354

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

joelwurtz
Copy link
Contributor
Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets /
License MIT
Doc PR /

While checking a process to end, on posix system, process component only checks if pipes are still open, this fix ensure that if the process is terminated it correctly return, even if the underlying pipe is not closed.

It can be useful when using \STDIN as a input stream as it will always be open

…is not closed:

While checking a process to end, on posix system, process component only checks if pipes are still open, this fix
ensure that if the process is terminated it correctly return, even if the underlying pipe is not closed.

It can be useful when using \STDIN as a input stream as it will always be open
@nicolas-grekas
Copy link
Member

Thank you @joelwurtz.

@nicolas-grekas nicolas-grekas merged commit 8c5f5ae into symfony:5.4 May 18, 2023
This was referenced May 22, 2023
@joelwurtz joelwurtz deleted the fix/allow-not-terminated-input-for-process branch August 14, 2023 20:13
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
0