[][src]Module signal_hook::cleanup

Cleaning up signals.

The routines in this module allow resetting the signals of an application back to defaults. This is intended for the following situation:

The alternative of leaving the original signals in place might be problematic in case the shutdown takes a long time or when it gets stuck. In such case the application would appear to ignore the signal and just refuse to die.

There are two ways to perform the reset:

Functions

cleanup_raw

Resets the signal handler to the default one.

cleanup_signal

Resets the signal handler to the default one and removes all its hooks.

register

Register a cleanup after receiving a signal.

unregister_signal

Removes all previously installed actions for a given signal.