signal_hook_registry

Function register_sigaction

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