[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

haizaar report at bugs.python.org
Thu Jun 27 09:11:23 EDT 2019


haizaar <haizaar at gmail.com> added the comment:

Thanks for looking at it.

My original code had "tar" running, which is a child of the shell as well... I assume running exec in the shell may help somewhat, but not a cure obviously.

I'm all for killing the process group. "Run something and get it's about" should be simple enough without requiring a programmer to know all POSIX process semantics.

----------

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


More information about the Python-bugs-list mailing list