summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorbrian <brian@openbsd.org>1999-01-10 02:23:22 +0000
committerbrian <brian@openbsd.org>1999-01-10 02:23:22 +0000
commit1154bd8417ae1d0b25674175628161f4a024f9a7 (patch)
treec9c8104181c18ce7252d84e9b438789d5f4ad5aa /sys/kern/init_main.c
parentMake RFNOWAIT work in rfork(2) (diff)
downloadwireguard-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