mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Support wait_interruptible for Poller
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d2aa06cbe2
commit
50761a5cc5
@ -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())?;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user