#include <SignalHandler.h>
Collaboration diagram for SignalHandler:
Public Member Functions | |
EventHandler * | register_handler (int signum, EventHandler *eh, bool override=false) |
EventHandler * | remove_handler (int signum) |
virtual | ~SignalHandler () |
Static Public Member Functions | |
SignalHandler * | instance () |
Friends | |
class | HTTPCacheTest |
class | SignalHandlerTest |
This class treats signals it registers (using the EventHandler abstract class) differently than ones registered using the signal()
or sigaction()
system interfaces. If the register_handler() method is called and an instance of EventHandler is already bound to signum, then the old EventHandler is returned. However, if there's an existing handler that was set up with sigaction()
, ..., it won't be returned. Instead it will either be run after the newly registered EventHandler or ignored, depending on register_handler()'s override parameter. This feature may be used only for POSIX.1 signals which cause process termination. They are: SIGHUP, SIGINT, SIGKILL, SIGPIPE, SIGALRM, SIGTERM, SIGUSR1, and SIGUSR2.
Definition at line 63 of file SignalHandler.h.
|
Definition at line 104 of file SignalHandler.h. |
|
Get a pointer to the single instance of SignalHandler. Definition at line 122 of file SignalHandler.cc. Referenced by DODSFilter::establish_timeout(). |
|
Register an event handler. By default run any previously registered action/handler such as those installed using
Definition at line 142 of file SignalHandler.cc. References long_to_string(). Referenced by DODSFilter::establish_timeout(). |
Here is the call graph for this function:
|
Remove the event hander.
Definition at line 211 of file SignalHandler.cc. |
|
Definition at line 98 of file SignalHandler.h. |
|
Definition at line 97 of file SignalHandler.h. |