The branch main has been updated by sobomax: URL: https://cgit.FreeBSD.org/src/commit/?id=26b3ff1f5c4bb1c4c311638e92b229cbc94a44ec
commit 26b3ff1f5c4bb1c4c311638e92b229cbc94a44ec Author: Maxim Sobolev <[email protected]> AuthorDate: 2026-09-22 18:37:52 +0000 Commit: Maxim Sobolev <[email protected]> CommitDate: 2026-09-22 18:37:52 +0000 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 --- sys/compat/linux/linux.c | 6 ++++-- 1 file 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; }
