This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fergushenderson
Recipients fergushenderson
Date 2008-03-26.01:15:46
SpamBayes Score 0.62724555
Marked as misclassified No
Message-id <1206494149.11.0.607365562092.issue2489@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-03-26 01:15:49fergushendersonsetspambayes_score: 0.627246 -> 0.62724555
recipients: + fergushenderson
2008-03-26 01:15:49fergushendersonsetspambayes_score: 0.627246 -> 0.627246
messageid: <1206494149.11.0.607365562092.issue2489@psf.upfronthosting.co.za>
2008-03-26 01:15:48fergushendersonlinkissue2489 messages
2008-03-26 01:15:48fergushendersoncreate