[issue31935] subprocess.run() timeout not working with grandchildren and stdout=PIPE

Martin Panter report at bugs.python.org
Fri Nov 3 20:44:19 EDT 2017


Martin Panter <vadmium+py at gmail.com> added the comment:

This proposal sounds like a race condition. Closing the output pipe as a child exits means you risk missing recent output. On the other hand, if you don’t care about the output any more, close the pipe first and then wait for the child.

Related discussions:

Issue 30154: Similar problem, but the grandchild does not write any output
Issue 26534: kill_group=True option for timeout
Issue 31447: Windows-specific (?)

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31935>
_______________________________________


More information about the Python-bugs-list mailing list