New submission from Fergus Henderson <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2489> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com