commit | 580d2782f70f8e0bed7ec20abb03d740cb83b5da | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@krypto.org> | Wed Sep 11 04:23:05 2019 -0500 |
committer | T. Wouters <thomas@python.org> | Wed Sep 11 02:23:05 2019 -0700 |
tree | 28962e4e84a383c7d5c79250d406a663bc3fa7c8 | |
parent | 3fb1363fe87a24cdb2ee1dd9746f1c49046af958 [diff] |
bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-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.