#include <KjSignal.h>
Public Member Functions | |
KjSignal () | |
~KjSignal () | |
bool | IsSigInt () |
bool | IsSigQuit () |
void | InitSignals () |
Init checking all signals. | |
Private Member Functions | |
void | InitSignal (const int _iSignalId) |
Init signals. | |
Static Private Member Functions | |
static void | CheckSignal (const int _iSignalId) |
Check system signals. | |
static void | SigIntHandler (const int _iSignalI) |
Signal handler for SIGINT (CTRL-C). | |
static void | SigQuitHandler (const int _iSignalI) |
Signal handler for SIGQUIT (CTRL-\). | |
static void | SigChldHandler (const int _iSignalId) |
Signal handler for child signal SIGCHLD. | |
Private Attributes | |
sigaction | m_tSa |
int | m_iCatchSignal |
void(* | m_pFunction )(int) |
Static Private Attributes | |
static bool | m_bIsSigInt |
Is signal handler for SIGINT (CTRL-C ) ? | |
static bool | m_bIsSigQuit |
Is signal handler for SIGQUIT (CTRL-\). |
Definition at line 46 of file KjSignal.h.
|
Definition at line 40 of file KjSignal.cpp. References m_bIsSigInt, m_bIsSigQuit, and m_tSa. |
|
Definition at line 48 of file KjSignal.cpp. |
|
Check system signals.
Definition at line 54 of file KjSignal.cpp. Referenced by InitSignal(). |
|
Init signals.
Definition at line 87 of file KjSignal.cpp. References CheckSignal(), and m_pFunction. Referenced by InitSignals(). |
|
Init checking all signals.
Definition at line 123 of file KjSignal.cpp. References InitSignal(), m_tSa, SigIntHandler(), and SigQuitHandler(). |
|
Definition at line 65 of file KjSignal.h. References m_bIsSigInt. |
|
Definition at line 70 of file KjSignal.h. References m_bIsSigQuit. |
|
Signal handler for child signal SIGCHLD.
Definition at line 116 of file KjSignal.cpp. |
|
Signal handler for SIGINT (CTRL-C).
Definition at line 94 of file KjSignal.cpp. References m_bIsSigInt. Referenced by InitSignals(). |
|
Signal handler for SIGQUIT (CTRL-\).
Definition at line 105 of file KjSignal.cpp. References m_bIsSigQuit. Referenced by InitSignals(). |
|
Is signal handler for SIGINT (CTRL-C ) ?
Definition at line 52 of file KjSignal.h. Referenced by IsSigInt(), KjSignal(), and SigIntHandler(). |
|
Is signal handler for SIGQUIT (CTRL-\).
Definition at line 53 of file KjSignal.h. Referenced by IsSigQuit(), KjSignal(), and SigQuitHandler(). |
|
Definition at line 50 of file KjSignal.h. |
|
Referenced by InitSignal(). |
|
Definition at line 48 of file KjSignal.h. Referenced by InitSignals(), and KjSignal(). |