summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-27 12:44:06 +0000
committerphk <phk@FreeBSD.org>2003-09-27 12:44:06 +0000
commitd92d95ded7b73abc510fdb77edc94e7311d3b8ce (patch)
tree69a6261c8ca077a9b6a3eb9639a03125adc034bf /sys/kern/tty_pty.c
parentdbd9fee48d011f8806dc4d9ba13b1fc7bbfca4ae (diff)
downloadFreeBSD-src-d92d95ded7b73abc510fdb77edc94e7311d3b8ce.zip
FreeBSD-src-d92d95ded7b73abc510fdb77edc94e7311d3b8ce.tar.gz
Don't use seltrue when that is not really what we mean.
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c3
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).
OpenPOWER on IntegriCloud