diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2013-10-06 01:10:54 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2013-10-06 01:10:54 +0000 |
commit | 214c9c0119954cbe8f50e81b4998d79a016914cd (patch) | |
tree | e712bc48a489bdb068b76c0d7688356940bfef50 /sys/kern/tty.c | |
parent | 8a463ac1896a642733a8749a7c122ecf8ece5000 (diff) |
Back out POLLHUP change until a problem with xterm hanging on close
is fixed.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 45a386b32f1..fa82a3db1ca 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.100 2013/10/04 17:52:55 millert Exp $ */ +/* $OpenBSD: tty.c,v 1.101 2013/10/06 01:10:53 millert Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -1065,10 +1065,7 @@ ttpoll(dev_t device, int events, struct proc *p) !ISSET(tp->t_state, TS_CARR_ON))) revents |= events & (POLLIN | POLLRDNORM); } - /* NOTE: POLLHUP and POLLOUT/POLLWRNORM are mutually exclusive */ - if (!ISSET(tp->t_cflag, CLOCAL) && !ISSET(tp->t_state, TS_CARR_ON)) { - revents |= POLLHUP; - } else if (events & (POLLOUT | POLLWRNORM)) { + if (events & (POLLOUT | POLLWRNORM)) { if (tp->t_outq.c_cc <= tp->t_lowat) revents |= events & (POLLOUT | POLLWRNORM); } |