summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-09-23 17:12:25 +0000
committered <ed@FreeBSD.org>2008-09-23 17:12:25 +0000
commit94258be42159763be6d3f064301d04f129edda8b (patch)
tree7df69923e5d79867c0f1c00c015f8348964ddbf3 /tools
parent081d7d9aba077c1d2fb8cc4a1a0374c0a3927cf0 (diff)
downloadFreeBSD-src-94258be42159763be6d3f064301d04f129edda8b.zip
FreeBSD-src-94258be42159763be6d3f064301d04f129edda8b.tar.gz
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 <clbuisson orange fr>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud