subprocess 'wait' method causes .py program to hang.
Earl Eiland
eee at nmt.edu
Sat Mar 19 11:36:35 EST 2005
I calling a Windows executable with PROC = subprocess.Popen('...'), and
blocking further python execution until the process terminates with
PROC.wait(). Occasionally, something unusual happens with the
subprocess, and it fails without terminating the process. When this
happens, my Python program doesn't detect the error condition, and
hangs.
What can I do about this?
Earl Eiland
More information about the Python-list
mailing list