diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-03-19 19:03:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-03-19 19:03:08 +0000 |
commit | 0c219a7c0fc7074784d2f669ba30f58edf078a86 (patch) | |
tree | e3e0972b45a369f99899f4dee5b66094db85b748 /sys/kern | |
parent | 30bc3b038189c4ce22b07bf78aab82d3cc1b5cbf (diff) |
check for CLOCAL flag in right variable; from sq@oganer.net
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 3b14f4c01ad..0aca0394f7a 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.63 2004/02/10 01:19:47 millert Exp $ */ +/* $OpenBSD: tty.c,v 1.64 2004/03/19 19:03:07 deraadt Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -1117,7 +1117,7 @@ filt_ttyread(struct knote *kn, long hint) s = spltty(); kn->kn_data = ttnread(tp); splx(s); - if (!ISSET(tp->t_state, CLOCAL) && !ISSET(tp->t_state, TS_CARR_ON)) { + if (!ISSET(tp->t_cflag, CLOCAL) && !ISSET(tp->t_state, TS_CARR_ON)) { kn->kn_flags |= EV_EOF; return (1); } |