]> granicus.if.org Git - python/commit
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 22 Dec 2006 18:41:42 +0000 (18:41 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 22 Dec 2006 18:41:42 +0000 (18:41 +0000)
commitee0e6d16b371a66e1d9ab8103fb51117db37cdbc
tree566bc24fe583c883252b956a9f6fe10b1602e0eb
parent3fa5e6ee4527219a9351413ac6ba425be8ea5dd8
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
the master should close the slave fd.

Added a test to test_pty.py that reads from the master_fd after doing
a pty.fork(); without the fix it hangs forever instead of raising an
exception.  (<crossing fingers for the buildbots>)

2.5 backport candidate.
Lib/pty.py
Lib/test/test_pty.py