Function signal_hook::low_level::pipe::register[][src]

pub fn register<P>(signal: c_int, pipe: P) -> Result<SigId, Error> where
    P: IntoRawFd + 'static, 
This is supported on non-Windows only.
Expand description

Registers a write to a self-pipe whenever there’s the signal.

The ownership of pipe is taken and will be closed whenever the created action is unregistered.

Note that if you want to register the same pipe for multiple signals, there’s try_clone method on many unix socket primitives.

See register_raw for further details.