This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Leonardo Francalanci
Recipients Leonardo Francalanci, eryksun, martin.panter
Date 2017-09-13.12:52:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505307165.99.0.546723919761.issue31447@psf.upfronthosting.co.za>
In-reply-to
Content
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...
History
Date User Action Args
2017-09-13 12:52:46Leonardo Francalancisetrecipients: + Leonardo Francalanci, martin.panter, eryksun
2017-09-13 12:52:45Leonardo Francalancisetmessageid: <1505307165.99.0.546723919761.issue31447@psf.upfronthosting.co.za>
2017-09-13 12:52:45Leonardo Francalancilinkissue31447 messages
2017-09-13 12:52:45Leonardo Francalancicreate