diff options
-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). |