Skip to content

[3.7] bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490) - #15898

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-580d278-3.7
Sep 11, 2019
Merged

[3.7] bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)#15898
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-580d278-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 11, 2019

Copy link
Copy Markdown
Contributor

Fixes a possible hang when using a timeout on subprocess.run() while
capturing output. If the child process spawned its own children or otherwise
connected its stdout or stderr handles with another process, we could hang
after the timeout was reached and our child was killed when attempting to read
final output from the pipes.
(cherry picked from commit 580d278)

Co-authored-by: Gregory P. Smith [email protected]

https://bugs.python.org/issue37424

…honGH-14490)

Fixes a possible hang when using a timeout on subprocess.run() while
capturing output. If the child process spawned its own children or otherwise
connected its stdout or stderr handles with another process, we could hang
after the timeout was reached and our child was killed when attempting to read
final output from the pipes.
(cherry picked from commit 580d278)

Co-authored-by: Gregory P. Smith <[email protected]>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@gpshead and @Yhg1s: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@gpshead and @Yhg1s: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit 5fe153c into python:3.7 Sep 11, 2019
@miss-islington
miss-islington deleted the backport-580d278-3.7 branch September 11, 2019 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants