libassa
3.5.1
|
Class SIGCHLDHandler handles SIGCHLD signal. More...
#include <Handlers.h>
Public Member Functions | |
SIGCHLDHandler () | |
Constructor. More... | |
int | handle_signal (int signum_) |
Receive CHLD signal. More... | |
sig_atomic_t | child_exited () |
Did child exit? More... | |
void | resetState () |
Reset child's exit state. More... | |
![]() | |
EventHandler () | |
Constructor. More... | |
virtual | ~EventHandler () |
Virtual destructor. More... | |
virtual int | handle_read (int fd) |
Read event callback. More... | |
virtual int | handle_write (int fd) |
Write handler callback. More... | |
virtual int | handle_except (int fd) |
Exception handler callback. More... | |
virtual int | handle_timeout (TimerId tid) |
Timeout handler callback. More... | |
virtual int | handle_close (int fd) |
EOF on peer socket handler callback. More... | |
void | set_id (const std::string &id_) |
Set EventHandler ID. More... | |
std::string | get_id () const |
Retrieve EventHandler ID. More... | |
Private Attributes | |
sig_atomic_t | m_child_exit_flag |
Child exit's state. More... | |
Additional Inherited Members | |
![]() | |
std::string | m_id |
Class SIGCHLDHandler handles SIGCHLD signal.
Definition at line 187 of file Handlers.h.
|
inline |
Constructor.
Definition at line 191 of file Handlers.h.
References ASSA::SIGHAND, and trace_with_mask.
|
inline |
|
inlinevirtual |
Receive CHLD signal.
Reimplemented from ASSA::EventHandler.
Definition at line 197 of file Handlers.h.
References m_child_exit_flag, ASSA::SIGHAND, and trace_with_mask.
|
inlinevirtual |
Reset child's exit state.
Reimplemented from ASSA::EventHandler.
Definition at line 212 of file Handlers.h.
References m_child_exit_flag.
|
private |
Child exit's state.
Definition at line 216 of file Handlers.h.
Referenced by child_exited(), handle_signal(), and resetState().