]> granicus.if.org Git - python/commit
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
authorGeorg Brandl <georg@python.org>
Wed, 31 Jan 2007 07:48:49 +0000 (07:48 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 31 Jan 2007 07:48:49 +0000 (07:48 +0000)
commitcd7a78e0a4130674b814934a9d77c92d9cbbf9be
treee75c4cc5db7b482fec1669c81800952c116b3c57
parentd13eeb7fd272bdf856ea73d83a5d9e17b5a83322
[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>)

Backport from trunk rev. 53146.
Lib/pty.py
Lib/test/test_pty.py
Misc/NEWS