diff options
author | 1999-01-10 02:23:22 +0000 | |
---|---|---|
committer | 1999-01-10 02:23:22 +0000 | |
commit | 1154bd8417ae1d0b25674175628161f4a024f9a7 (patch) | |
tree | c9c8104181c18ce7252d84e9b438789d5f4ad5aa /sys/kern/init_main.c | |
parent | Make RFNOWAIT work in rfork(2) (diff) | |
download | wireguard-openbsd-1154bd8417ae1d0b25674175628161f4a024f9a7.tar.xz wireguard-openbsd-1154bd8417ae1d0b25674175628161f4a024f9a7.zip |
Only call isatty() when we open our descriptor, and remember
the answer.
If we later get a descriptor exception from select(), we know
that it's a tty (isatty() returns 0 after the exception on a
tty) and remember to call modem_LogicalClose().
The upshot of it all is that descriptor exceptions dont leave
the tty locked any more.
Diffstat (limited to 'sys/kern/init_main.c')
0 files changed, 0 insertions, 0 deletions