diff options
author | phk <phk@FreeBSD.org> | 2003-09-27 12:44:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-09-27 12:44:06 +0000 |
commit | d92d95ded7b73abc510fdb77edc94e7311d3b8ce (patch) | |
tree | 69a6261c8ca077a9b6a3eb9639a03125adc034bf | |
parent | dbd9fee48d011f8806dc4d9ba13b1fc7bbfca4ae (diff) | |
download | FreeBSD-src-d92d95ded7b73abc510fdb77edc94e7311d3b8ce.zip FreeBSD-src-d92d95ded7b73abc510fdb77edc94e7311d3b8ce.tar.gz |
Don't use seltrue when that is not really what we mean.
-rw-r--r-- | sys/kern/tty_pty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index ee2fead..2de3a04 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -491,7 +491,8 @@ ptcpoll(dev, events, td) int s; if ((tp->t_state & TS_CONNECTED) == 0) - return (seltrue(dev, events, td) | POLLHUP); + return (events & + (POLLHUP | POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM)); /* * Need to block timeouts (ttrstart). |