Skip to content

Commit

Permalink
epoll.rs: Add EPOLLPRI to the watched event types
Browse files Browse the repository at this point in the history
  • Loading branch information
poeschel committed Jan 27, 2023
1 parent fa4e4b3 commit 538970c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/unix/selector/epoll.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{Interest, Token};

use libc::{EPOLLET, EPOLLIN, EPOLLOUT, EPOLLRDHUP};
use libc::{EPOLLET, EPOLLIN, EPOLLOUT, EPOLLPRI, EPOLLRDHUP};
use log::error;
use std::os::unix::io::{AsRawFd, RawFd};
#[cfg(debug_assertions)]
Expand Down Expand Up @@ -167,7 +167,7 @@ impl Drop for Selector {
}

fn interests_to_epoll(interests: Interest) -> u32 {
let mut kind = EPOLLET;
let mut kind = EPOLLET | EPOLLPRI;

if interests.is_readable() {
kind = kind | EPOLLIN | EPOLLRDHUP;
Expand Down

0 comments on commit 538970c

Please sign in to comment.