diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2021-12-11 09:28:27 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2021-12-11 09:28:27 +0000 |
commit | c1809b833fd76a96ac3af269b7e0adffa3ec9ed1 (patch) | |
tree | 74d59d5fa50632e1755a67a258df2d3f388baf40 /sys/kern/tty_tty.c | |
parent | 8e9bdeba24898f46623ffd9191ed9fb8e126065e (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.c | 4 |
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); } |