Function nix::sys::signalfd::signalfd
[−]
[src]
pub fn signalfd(fd: RawFd, mask: &SigSet, flags: SfdFlags) -> Result<RawFd>
Creates a new file descriptor for reading signals.
Important: please read the module level documentation about signal discarding before using this function!
The mask
parameter specifies the set of signals that can be accepted via this file descriptor.
A signal must be blocked on every thread in a process, otherwise it won't be visible from signalfd (the default handler will be invoked instead).