]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only call isatty() when we open our descriptor, and remember
authorbrian <brian@FreeBSD.org>
Sun, 10 Jan 1999 01:26:30 +0000 (01:26 +0000)
committerbrian <brian@FreeBSD.org>
Sun, 10 Jan 1999 01:26:30 +0000 (01:26 +0000)
commit541b200a907df9730d6c52f272bc2eb5385c41fe
tree05376906d358406080e4668bf48135700a58b1e8
parent3905f929a7f97b0ef4744b343438c8aa71eadaf2
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.
usr.sbin/ppp/modem.c
usr.sbin/ppp/physical.c
usr.sbin/ppp/physical.h