Function nix::poll::ppoll

source · []
pub fn ppoll(
    fds: &mut [PollFd],
    timeout: Option<TimeSpec>,
    sigmask: SigSet
) -> Result<c_int>
Available on crate features poll and signal only.
Expand description

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).