Support wait_interruptible for Poller

This commit is contained in:
Jianfeng Jiang
2023-09-26 17:45:53 +08:00
committed by Tate, Hongliang Tian
parent d2aa06cbe2
commit 50761a5cc5
12 changed files with 56 additions and 22 deletions

View File

@ -91,7 +91,7 @@ pub fn do_poll(poll_fds: &[PollFd], timeout: Option<Duration>) -> Result<usize>
return Ok(0);
}
poller.wait(timeout.as_ref())?;
poller.wait_interruptible(timeout.as_ref())?;
}
}