summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_tty.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-06-11 09:18:43 +0000
committermpi <mpi@openbsd.org>2020-06-11 09:18:43 +0000
commit1c57bd6bc2d4b1536ac76e1cdb4ba92124a01e2a (patch)
treecf6c4012afeddc39d7109022ec66f36b3657a917 /sys/kern/tty_tty.c
parentMake spec_kqfilter() and cttykqfilter() behave like their corresponding (diff)
downloadwireguard-openbsd-1c57bd6bc2d4b1536ac76e1cdb4ba92124a01e2a.tar.xz
wireguard-openbsd-1c57bd6bc2d4b1536ac76e1cdb4ba92124a01e2a.zip
Rename poll-compatibility flag to better reflect what it is.
While here prefix kernel-only EV flags with two underbars. Suggested by kettenis@, ok visa@
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 8286f3c4df2..c25aa81a11c 100644
--- a/sys/kern/tty_tty.c
+++ b/sys/kern/tty_tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_tty.c,v 1.26 2020/06/11 09:06:29 mpi Exp $ */
+/* $OpenBSD: tty_tty.c,v 1.27 2020/06/11 09:18:43 mpi 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_OLDAPI)
+ if (kn->kn_flags & __EV_POLL)
return (seltrue_kqfilter(dev, kn));
return (ENXIO);
}