nix::sys::signalfd

Function signalfd

source
pub fn signalfd<F: AsFd>(
    fd: Option<F>,
    mask: &SigSet,
    flags: SfdFlags,
) -> Result<OwnedFd>
👎Deprecated since 0.27.0: Use SignalFd instead
Expand description

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

See the signalfd man page for more information