signal.signal()¶
-
signal.signal(sig, action) → action¶ Set the action for the given signal. The action can be SIG_DFL, SIG_IGN, or a callable Python object. The previous action is returned. See getsignal() for possible return values.
* IMPORTANT NOTICE * A signal handler function is called with two arguments: the first is the signal number, the second is the interrupted stack frame.