alarm() -- cause SIGALRM after a specified time [Unix only]signal() -- set the action for a given signalgetsignal() -- get the signal action for a given signalpause() -- wait until a signal arrives [Unix only]default_int_handler() -- default SIGINT handler

Constants:

SIG_DFL -- used to refer to the system default handler
SIG_IGN -- used to ignore the signal
NSIG -- number of defined signals

SIGINT, SIGTERM, etc. -- signal numbers

*** IMPORTANT NOTICE ***
A signal handler function is called with two arguments:
the first is the signal number, the second is the interrupted stack frame.

Return the current action for the given signal. The return value can be:
SIG_IGN -- if the signal is being ignored
SIG_DFL -- if the default action for the signal is in effect
None -- if an unknown handler is in effect
anything else -- the callable Python object used as a handler