Leonardo Francalanci added the comment:

thank you for your replies!

I used waitfor because it's the simplest and shortest way to have reproducible 
code. The issue I'm having is obviously not with waitfor, but with another exe, 
but this doesn't change the fact that I need a way to exit as soon as the 
called process exits or the timeout ends. I don't care what the called process 
does. I know that the process exited, and the docs for proc.communicate say 
"Wait for process to terminate". Well, the process terminates, but 
"communicate" doesn't exit. It doesn't say "communicate will hang as long as 
the pipes are open".
Plus: the "python.exe" process doesn't actually timeout!!! It just exits (with 
exception, but that's not important), and I would like to get the error from 
stderr! While I can't get it because "communicate" raises an exception...

----------

_______________________________________
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