commit | 2f131d81e2c45c4a2a8bebd0eded737bc90de965 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon Apr 23 01:58:33 2007 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon Apr 23 01:58:33 2007 +0000 |
tree | 362b77d90f5674a6dadcc0ada9aebd5dfca9a836 | |
parent | b9d39916ac8a23949c7abf95fe832376f44dce99 [diff] |
Recommit r54805: 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.