]> Zhao Yanbai Git Server - minix.git/commit
TTY: fix for PTY open/close logic 57/957/2
authorDavid van Moolenbroek <david@minix3.org>
Sat, 31 Aug 2013 14:08:25 +0000 (16:08 +0200)
committerLionel Sambuc <lionel@minix3.org>
Tue, 18 Feb 2014 10:25:03 +0000 (11:25 +0100)
commit20173cb5d70871196637de18fb3857ad4a4b951a
treedc594fef94b83f86fe526779ddf21ecfb0c7874e
parent836894a2190de71725149845877b1697d3ff1bc4
TTY: fix for PTY open/close logic

Opening and closing the master side of a pseudo terminal without
opening the slave side would result in the pseudo terminal becoming
permanently unavailable.  In addition, reopening the slave side
would be possible but not allow for I/O.  Finally, attempting to
open an in-use master would wipe its I/O state.  These issues have
been resolved.

Change-Id: I9235e3d9aba321803f9280b86b6b5e3646ad5ef3
drivers/tty/pty.c