Method lrs::signal::Sigfd::new

Creates a new signalfd.

Flags used when creating the file descriptor.

Syntax

impl Sigfd {
    fn new(set: Sigset, flags: SigfdFlags) -> Result<Sigfd, Errno>
}

Arguments

NameDescription
set

The set of signals to watch.

flags

Return value

Returns a new signalfd.