• Reid Kleckner's avatar
    Add a 'timeout' argument to subprocess.Popen. · a3a232ce
    Reid Kleckner authored
    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.
    a3a232ce
_subprocess.c 19.9 KB