From c1809b833fd76a96ac3af269b7e0adffa3ec9ed1 Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Sat, 11 Dec 2021 09:28:27 +0000 Subject: 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@ --- sys/ufs/ufs/ufs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 0652945fee6..ea6e2649e1d 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_vnops.c,v 1.153 2020/12/25 12:59:53 visa Exp $ */ +/* $OpenBSD: ufs_vnops.c,v 1.154 2021/12/11 09:28:26 visa Exp $ */ /* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */ /* @@ -1973,7 +1973,7 @@ filt_ufsread(struct knote *kn, long hint) return (1); } - if (kn->kn_flags & __EV_POLL) + if (kn->kn_flags & (__EV_POLL | __EV_SELECT)) return (1); return (kn->kn_data != 0); -- cgit v1.2.3