aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2026-09-22 18:37:52 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2026-09-22 18:37:52 +0000
commit26b3ff1f5c4bb1c4c311638e92b229cbc94a44ec (patch)
treebcca89fd625048b23f0966bd050d551406618662
parent0cb85c5b41fffef79584929e7b056cc64e9cc391 (diff)
Ignore LINUX_POLLREMOVE
This matches upstream behaviour since Linux's demangle_poll() silently discards POLLREMOVE from the requested events. Reviewed by: emaste Sponsored by: Sippy Software, Inc. Differential Revision: https://reviews.freebsd.org/D59914 MFC after: 1 week PR: 297467
-rw-r--r--sys/compat/linux/linux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linux/linux.c b/sys/compat/linux/linux.c
index da2f641bb791..464acb245a5d 100644
--- a/sys/compat/linux/linux.c
+++ b/sys/compat/linux/linux.c
@@ -581,8 +581,10 @@ linux_to_bsd_poll_events(struct thread *td, int fd, short lev,
if (lev & LINUX_POLLMSG)
LINUX_RATELIMIT_MSG_OPT1("unsupported POLLMSG, events(%d)", lev);
- if (lev & LINUX_POLLREMOVE)
- LINUX_RATELIMIT_MSG_OPT1("unsupported POLLREMOVE, events(%d)", lev);
+ /*
+ * Ignore LINUX_POLLREMOVE, as Linux's demangle_poll() silently
+ * discards POLLREMOVE from the requested events.
+ */
*bev = bits;
}