[issue30154] subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad

Martin Panter report at bugs.python.org
Mon Apr 24 07:20:28 EDT 2017


Martin Panter added the comment:

This is similar to the problem described in Issue 26534, which proposes “kill_group” and “killpg” APIs as a solution.

(FYI you should put a shebang at the start of the shell script, or call it as “sh -c test.sh”, to fix the “Exec format error”.)

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

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30154>
_______________________________________


More information about the Python-bugs-list mailing list