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
This commit is contained in:
Maxim Sobolev committed 2026-09-22 11:37:52 -07:00
1 parent 0cb85c5b41
commit 26b3ff1f5c
1 file changed
+4 -2
+4 -2
View File
@@ -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;
}