Lines Matching refs:signalfd
1 //! Interface for the `signalfd` syscall.
11 //! `signalfd` in itself cannot be used for reliable communication between processes or threads.
14 //! (ie. not consumed from a signalfd) it will be delivered to the signal handler.
16 //! Please note that signal discarding is not specific to `signalfd`, but also happens with regular
46 /// signalfd (the default handler will be invoked instead).
48 /// See [the signalfd man page for more information](https://man7.org/linux/man-pages/man2/signalfd.2.html)
49 pub fn signalfd(fd: RawFd, mask: &SigSet, flags: SfdFlags) -> Result<RawFd> {
51 Errno::result(libc::signalfd(
59 /// A helper struct for creating, reading and closing a `signalfd` instance.
67 /// # use nix::sys::signalfd::*;
94 let fd = signalfd(SIGNALFD_NEW, mask, flags)?;
100 signalfd(self.0, mask, SfdFlags::empty()).map(drop)
113 Ok(_) => unreachable!("partial read on signalfd"),