[issue5673] Add timeout option to subprocess.Popen

Dave Malcolm report at bugs.python.org
Fri Jul 2 02:18:00 CEST 2010


Dave Malcolm <dmalcolm at redhat.com> added the comment:

The patch has bitrotted somewhat; I've had a go at reworking it so it applies against the latest version of trunk (r82429).

All tests pass (or are skipped) on this x86_64 Linux box --with-pydebug (Fedora 13)

There are still some TODOs in the code:

Popen.wait():
  # TODO(rnk): Test this on Windows.

Popen._communicate():
            # TODO: Somebody needs to research what happens to those
            # threads if they are still running.  Also, what happens if
            # you close a file descriptor on Windows in one thread?
            # Will it interrupt the other, or does the other keep its
            # own handle?

----------
nosy: +dmalcolm
Added file: http://bugs.python.org/file17832/subprocess-timeout-v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5673>
_______________________________________


More information about the Python-bugs-list mailing list