mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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:
1 parent
0cb85c5b41
commit
26b3ff1f5c
1 file changed
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user