summaryrefslogtreecommitdiff
path: root/sys/kern/tty_tty.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2021-12-11 09:28:27 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2021-12-11 09:28:27 +0000
commitc1809b833fd76a96ac3af269b7e0adffa3ec9ed1 (patch)
tree74d59d5fa50632e1755a67a258df2d3f388baf40 /sys/kern/tty_tty.c
parent8e9bdeba24898f46623ffd9191ed9fb8e126065e (diff)
Clarify usage of __EV_POLL and __EV_SELECT
Make __EV_POLL specific to kqueue-based poll(2), to remove overlap with __EV_SELECT that only select(2) uses. OK millert@ mpi@
Diffstat (limited to 'sys/kern/tty_tty.c')
-rw-r--r--sys/kern/tty_tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c
index acd8b0d33e9..ea658089048 100644
--- a/sys/kern/tty_tty.c
+++ b/sys/kern/tty_tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_tty.c,v 1.28 2021/03/10 10:21:47 jsg Exp $ */
+/* $OpenBSD: tty_tty.c,v 1.29 2021/12/11 09:28:26 visa Exp $ */
/* $NetBSD: tty_tty.c,v 1.13 1996/03/30 22:24:46 christos Exp $ */
/*-
@@ -159,7 +159,7 @@ cttykqfilter(dev_t dev, struct knote *kn)
struct vnode *ttyvp = cttyvp(curproc);
if (ttyvp == NULL) {
- if (kn->kn_flags & __EV_POLL)
+ if (kn->kn_flags & (__EV_POLL | __EV_SELECT))
return (seltrue_kqfilter(dev, kn));
return (ENXIO);
}