• Reid Kleckner's avatar
    Add a 'timeout' argument to subprocess.Popen. · 31aa7dd1
    Reid Kleckner yazdı
    If the timeout expires before the subprocess exits, the wait method and the
    communicate method will raise a subprocess.TimeoutExpired exception.  When used
    with communicate, it is possible to catch the exception, kill the process, and
    retry the communicate and receive any output written to stdout or stderr.
    31aa7dd1
_subprocess.c 19.9 KB