Python: module adesklets.signal_handler

adesklets.signal_handler | index signal_handler.py

`adesklets signal handler module.
Originally written by Michael P. Reilly - http://www.speakeasy.org/~arcege/
Slightly modified to handle multiple signal registration/unregistration
in the base class.`

Modules
`` |  |
types |  |  |

Classes
`` |  | Signal_handler
class Signal_handler
`` | `Create a mechanism to set a signal handler and reset when the instance is destroyed.`
| Methods defined here: __del__(self) __init__(self, signals, handler=None) `Can take integer signal number (checked in the signal module) or the string name of a valid signal (encapsulated in an array)` clear(self, my_signals=None) Data and other attributes defined here: func = <built-in function 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.` ignore = 1 posix_signal = <module 'posix_signal' from '/usr/lib/python2.4/site-packages/posix_signal.so'>