diff options
author | ed <ed@FreeBSD.org> | 2008-09-23 17:12:25 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-09-23 17:12:25 +0000 |
commit | 94258be42159763be6d3f064301d04f129edda8b (patch) | |
tree | 7df69923e5d79867c0f1c00c015f8348964ddbf3 /lib/libc/string/memccpy.c | |
parent | 081d7d9aba077c1d2fb8cc4a1a0374c0a3927cf0 (diff) | |
download | FreeBSD-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 'lib/libc/string/memccpy.c')
0 files changed, 0 insertions, 0 deletions