K 10 svn:author V 2 ed K 8 svn:date V 27 2008-09-23T17:12:25.492765Z K 7 svn:log V 599 Track state to determine if the associated TTY device node has been used. It turns out our old TTY layer (and other implementations) block when you read() on a PTY master device of which the slave device node has not been opened yet. Our new implementation just returned 0. This caused applications like telnetd to die in a very subtle way (when child processes would open the TTY later than the first call to select()). Introduce a new flag called PTS_FINISHED, which indicates whether we should block or bail out of a read() or write() occurs. Reported by: Claude Buisson END