[][src]Function signal_hook_registry::unregister_signal

pub fn unregister_signal(signal: c_int) -> bool

Removes all previously installed actions for a given signal.

This is similar to the unregister function, with the sole difference it removes all actions for the given signal.

Returns if any hooks were actually removed (returns false if there was no hook registered for the signal).

Warning

Similar to unregister, this does not manipulate the signal handler in the OS, it only removes the hooks on the Rust side.

Furthermore, this will remove all signal hooks of the given signal. These may have been registered by some library or unrelated part of the program. Therefore, this should be only used by the top-level application.