#include <Handlers.h>
Inheritance diagram for ASSA::SIGCHLDHandler:
Public Member Functions | |
SIGCHLDHandler () | |
Constructor. | |
int | handle_signal (int signum_) |
Receive CHLD signal. | |
sig_atomic_t | child_exited () |
Did child exit? | |
void | resetState () |
Reset child's exit state. | |
Private Attributes | |
sig_atomic_t | m_child_exit_flag |
Child exit's state. |
Definition at line 187 of file Handlers.h.
|
Constructor.
Definition at line 191 of file Handlers.h. References ASSA::SIGHAND, and trace_with_mask. 00191 : m_child_exit_flag(0) { 00192 trace_with_mask("SIGCHLDHandler::SIGCHLDHandler", SIGHAND); 00193 }
|
|
Did child exit?
Definition at line 208 of file Handlers.h. References m_child_exit_flag. 00208 { return m_child_exit_flag; }
|
|
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. 00197 { 00198 trace_with_mask("SIGCHLDHandler::handle_signal", SIGHAND); 00199 00200 if (signum_ == SIGCHLD && wait(NULL) != -1) { 00201 m_child_exit_flag = 1; 00202 return 0; 00203 } 00204 return -1; 00205 }
|
|
Reset child's exit state.
Reimplemented from ASSA::EventHandler. Definition at line 212 of file Handlers.h. References m_child_exit_flag. 00212 { m_child_exit_flag = 0; }
|
|
Child exit's state.
Definition at line 216 of file Handlers.h. Referenced by child_exited(), handle_signal(), and resetState(). |