commit | 25a3864541dc9259a3bfd36b195cbb764f8e2d56 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Fri Apr 13 18:47:14 2007 +0000 |
committer | Barry Warsaw <barry@python.org> | Fri Apr 13 18:47:14 2007 +0000 |
tree | 5bf4185d754518590dc92ba63407ac19d47ef0c6 | |
parent | 4234827e99eb73adbd387e15619cd6290f80f655 [diff] |
Port r54805 from python25-maint branch: Add code to read from master_fd in the parent, breaking when we get an OSError (EIO can occur on Linux) or there's no more data to read. Without this, test_pty.py can hang on the waitpid() because the child is blocking on the stdout write. This will definitely happen on Mac OS X and could potentially happen on other platforms. See the comment for details.