VoiceMan
Public Member Functions | List of all members
SystemSignalHandler Class Reference

The general handler of signals to daemon process. More...

Inheritance diagram for SystemSignalHandler:
AbstractSignalHandler

Public Member Functions

void onSystemSignal ()
 Notifies there was system signal and it must be handled. More...
 
 SystemSignalHandler (ClientList &clients, OutputSet &outputSet, ProtocolHandler &protocolHandler, ExecutorInterface &executorInterface)
 The constructor. More...
 
virtual ~SystemSignalHandler ()
 The destructor.
 
- Public Member Functions inherited from AbstractSignalHandler
virtual ~AbstractSignalHandler ()
 The destructor.
 

Detailed Description

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.

Constructor & Destructor Documentation

SystemSignalHandler::SystemSignalHandler ( ClientList &  clients,
OutputSet outputSet,
ProtocolHandler protocolHandler,
ExecutorInterface executorInterface 
)
inline
Parameters
[in]Thereference to list of connected clients
[in]outputSetThe reference to used output set object
[in]protocolHandlerThe reference to used protocol handler object
[in]executorInterfaceThe reference to executor interface object

Member Function Documentation

void SystemSignalHandler::onSystemSignal ( )
inlinevirtual

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.