Do not print on unsupported epoll flags

This commit is contained in:
Jeremy Soller
2024-05-06 15:24:56 -06:00
parent 8ab61e3d9a
commit b7a4527ab8
+2
View File
@@ -26,10 +26,12 @@ fn epoll_to_event_flags(epoll: c_uint) -> syscall::EventFlags {
event_flags |= syscall::EventFlags::EVENT_WRITE;
}
/*TODO: support more EPOLL flags
let unsupported = !(EPOLLIN | EPOLLOUT);
if epoll & unsupported != 0 {
eprintln!("epoll unsupported flags 0x{:X}", epoll & unsupported);
}
*/
event_flags
}