signals#

Intercept signals and handle them gracefully.

Functions#

get_signal_name(signum)

signal_handler(handler)

Attributes#

INTERRUPT_SIGNALS = ('SIGABRT', 'SIGINT', 'SIGTERM', 'SIGQUIT', 'SIGBREAK')#
get_signal_name(signum)#

Examples

>>> from signal import SIGINT
>>> get_signal_name(SIGINT)
'SIGINT'
signal_handler(handler)#