VoiceMan
|
The general handler of signals to daemon process. More...
Public Member Functions | |
void | onSystemSignal () |
Notifies there was system signal and it must be handled. | |
SystemSignalHandler (ClientList &clients, OutputSet &outputSet, ProtocolHandler &protocolHandler, ExecutorInterface &executorInterface) | |
The constructor. | |
virtual | ~SystemSignalHandler () |
The destructor. |
This class receives notifications from server main loop about received system signals. Main loop does not provide any information about the signal was received. This class must check flags set by functions called automatically by kernel on each signal and decide which exact signal must be handled.
SystemSignalHandler::SystemSignalHandler | ( | ClientList & | clients, |
OutputSet & | outputSet, | ||
ProtocolHandler & | protocolHandler, | ||
ExecutorInterface & | executorInterface | ||
) | [inline] |
[in] | The | reference to list of connected clients |
[in] | outputSet | The reference to used output set object |
[in] | protocolHandler | The reference to used protocol handler object |
[in] | executorInterface | The reference to executor interface object |
void SystemSignalHandler::onSystemSignal | ( | ) | [inline, virtual] |
This method is called by main loop class each time when pselect() system call is interrupted with EINTR exit code. It means the process have received system signal and it must be handled.
Implements AbstractSignalHandler.