Skip to content

run-tests: Fix getting stuck when the test process dies uncleanly #16456

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

Open
wants to merge 7 commits into
base: PHP-8.2
Choose a base branch
from

Conversation

TimWolla
Copy link
Member

When a test process spawns a subprocess that keeps STDOUT open and then dies uncleanly, while writing something to STDERR run-tests.php would erroneously attempt to read from STDOUT and then get blocked until the subprocess dies (which might never happen).

When a test process spawns a subprocess that keeps STDOUT open and then dies
uncleanly, while writing something to STDERR `run-tests.php` would erroneously
attempt to read from `STDOUT` and then get blocked until the subprocess dies
(which might never happen).
@TimWolla TimWolla force-pushed the run-tests_stuck_when_subprocess_exists branch from 5e23c92 to f5973c8 Compare October 16, 2024 12:13
@TimWolla
Copy link
Member Author

@devnexen Do you happen to have an idea why this completely breaks on FreeBSD? And perhaps also for the ext/pcntl/tests/pcntl_unshare_02.phpt test on Linux x64? I'm unable to reproduce the latter on my local machine.

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.

1 participant