Interface for signal handling. More...
#include <utils/system/signal.h>

Public Member Functions | |
| virtual | ~SignalHandler () |
| Virtual destructor. | |
| virtual void | handle_signal (int signal)=0 |
| Signal hanlding method. | |
Interface for signal handling.
Derive this class and implement handle_signal() to handle signals. The handler must then be registered via SignalManager::register_handler(). From then on handle_signal() is called if the desired signal has been received.
Definition at line 35 of file signal.h.
| fawkes::SignalHandler::~SignalHandler | ( | ) | [inline, virtual] |
| void fawkes::SignalHandler::handle_signal | ( | int | signum | ) | [pure virtual] |
Signal hanlding method.
Implement this method with the action you want to perform on the registered signals.
| signum | signal number of triggered signal |
Implemented in FawkesMainApp, JoystickQuitHandler, JoystickBlackBoardLogger, FawkesBeepDaemon, ConfigChangeWatcherTool, and PluginTool.
1.6.1