]> granicus.if.org Git - python/commit
Port r54805 from python25-maint branch:
authorBarry Warsaw <barry@python.org>
Fri, 13 Apr 2007 18:47:14 +0000 (18:47 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 13 Apr 2007 18:47:14 +0000 (18:47 +0000)
commit25a3864541dc9259a3bfd36b195cbb764f8e2d56
tree5bf4185d754518590dc92ba63407ac19d47ef0c6
parent4234827e99eb73adbd387e15619cd6290f80f655
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.
Lib/test/test_pty.py