-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11205 - arlosi:build-deadlock, r=ehuss
Fix deadlock when build scripts are waiting for input on stdin ### What does this PR try to resolve? #10738 introduced a regression where build scripts did not close stdin, causing deadlocks for build scripts waiting for stdin. Fixes #11196 by not piping `stdin` unless requested by the `ProcessBuilder`. ### How should we test and review this PR? Run a build script that reads from stdin and check that it no longer hangs. See the POC in the linked issue. The included test hangs without the fix. r? `@ehuss`
- Loading branch information
Showing
3 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters