13 #ifndef _SigHandlers_h
14 #define _SigHandlers_h
21 #include <sys/types.h>
75 virtual int install (
int signum_,
97 virtual int remove (
int signum_,
A collection of various most popular signal handlers.
Class SigHandler is a UNIX signal handlers manager/dispatcher class.
SigHandlersList is a Singleton class that maps signal number to a set of EventHandlers listening for ...
static void sighandlers_dispatcher(int signum_)
A wrapper around static SigHandlers::dispatch().
virtual int remove(int signum_, EventHandler *eh_, SigAction *new_disp_=0, SigAction *old_disp_=0)
Remove EventHandler from the list of registered handler for signum_.
virtual int install(int signum_, EventHandler *new_hand_, SigAction *new_disp_=0, EventHandler **old_hand_=0, SigAction *old_disp_=0)
Register EventHandler with dispatching system.
static void dispatch(int signum_)
The heart of SigHandlers class - this callback function is really registered with OS to catch all of ...