Do not print on unsupported epoll flags
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user