Built-in Module signal

signal This module provides mechanisms to use signal handlers in Python. Some general rules for working with signals handlers: The variables defined in the signal module are:
\begin{datadesc}{SIG_DFL}
 This is one of two standard signal handling options; ...
...xit,
 while the default action for SIGCLD is to simply ignore it.
\end{datadesc}

\begin{datadesc}{SIG_IGN}
 This is another standard signal handler, which will simply ignore
 the given signal.
\end{datadesc}

\begin{datadesc}{SIG*}
 All the signal numbers are defined symbolically. For exa...
...ly
 those names defined by the system are defined by this module.
\end{datadesc}

\begin{datadesc}{NSIG}
 One more than the number of the highest signal number.
\end{datadesc}
The signal module defines the following functions:
\begin{funcdesc}{alarm}{time}
 If \var{time} is non-zero, this function requests...
...currently scheduled. (See the \UNIX{} man page
 \code{alarm(2)}.)
\end{funcdesc}

\begin{funcdesc}{getsignal}{signalnum}
 Return the current signal handler for th...
...
 that the previous signal handler was not installed from Python.
\end{funcdesc}

\begin{funcdesc}{pause}{}
 Cause the process to sleep until a signal is received...
...d. Returns nothing. (See the
 \UNIX{} man page \code{signal(2)}.)
\end{funcdesc}

\begin{funcdesc}{signal}{signalnum\, handler}
 Set the handler for signal \var{s...
...rence manual for a description of frame objects).
\obindex{frame}
\end{funcdesc}