summaryrefslogtreecommitdiff
path: root/sys/ufs
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/ufs
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/ufs')
-rw-r--r--sys/ufs/ufs/ufs_vnops.c4
1 files changed, 2 insertions, 2 deletions
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);