Function nix::poll::ppoll
pub fn ppoll(fds: &mut [PollFd], timeout: Option<TimeSpec>, sigmask: SigSet) -> Result<libc::c_int>
The portability is definied by:
#[cfg(any(target_os = "android", target_os = "dragonfly", target_os =
"freebsd", target_os = "linux"))]
Documentation
ppoll()
allows an application to safely wait until either a file
descriptor becomes ready or until a signal is caught.
(poll(2)
)
ppoll
behaves like poll
, but let you specify what signals may interrupt it
with the sigmask
argument. If you want ppoll
to block indefinitely,
specify None
as timeout
(it is like timeout = -1
for poll
).