Function signal_hook_registry::register_sigaction[][src]

pub unsafe fn register_sigaction<F>(
    signal: c_int,
    action: F
) -> Result<SigId, Error> where
    F: Fn(&siginfo_t) + Sync + Send + 'static, 
Expand description

Register a signal action.

This acts in the same way as register, including the drawbacks, panics and performance characteristics. The only difference is the provided action accepts a siginfo_t argument, providing information about the received signal.

Safety

See the details of register.