[New-bugs-announce] [issue2489] Patch for bugs in pty.py

Fergus Henderson report at bugs.python.org
Wed Mar 26 02:15:49 CET 2008


New submission from Fergus Henderson <fergus.henderson at gmail.com>:

The attached patch fixes some bugs in the pty.py module:

  - spawn() would not wait for the invoked process to finish.
    Also, it did not return a meaningful value, so there was no way
    to tell if the invoked process failed.    After this patch,
    spawn() now waits for the invoked process, and returns the value
    returned from os.waitpid().

  - There was a bug in the _copy() loop that caused it to spin
    using 100% CPU rather than blocking after EOF was reached on
    one of the two file descriptors that it was waiting for.

----------
components: Library (Lib)
files: pty.py.patch
keywords: patch
messages: 64533
nosy: fergushenderson
severity: normal
status: open
title: Patch for bugs in pty.py
type: behavior
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9861/pty.py.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2489>
__________________________________


More information about the New-bugs-announce mailing list