Martin Panter added the comment:

.
Isn’t your use of “cmd” similar enough to shell=True? I.e. isn’t that a “cmd” 
parent process spawning a “waitfor” child? If your 4 s “subprocess.run” call 
times out, does it kill the “waitfor” process, or leave it running?

Could the “waitfor” process write to stdout or stderr, and should that be 
captured by your 20 s “communicate” call?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31447>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to