#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 182 of file Handlers.h.
|
Constructor.
Definition at line 186 of file Handlers.h. References ASSA::SIGHAND, and trace_with_mask. 00186 : m_child_exit_flag(0) { 00187 trace_with_mask("SIGCHLDHandler::SIGCHLDHandler", SIGHAND); 00188 }
|
|
Did child exit?
Definition at line 203 of file Handlers.h. References m_child_exit_flag. 00203 { return m_child_exit_flag; }
|
|
Receive CHLD signal.
Reimplemented from ASSA::EventHandler. Definition at line 192 of file Handlers.h. References m_child_exit_flag, ASSA::SIGHAND, and trace_with_mask. 00192 { 00193 trace_with_mask("SIGCHLDHandler::handle_signal", SIGHAND); 00194 00195 if (signum_ == SIGCHLD && wait(NULL) != -1) { 00196 m_child_exit_flag = 1; 00197 return 0; 00198 } 00199 return -1; 00200 }
|
|
Reset child's exit state.
Reimplemented from ASSA::EventHandler. Definition at line 207 of file Handlers.h. References m_child_exit_flag. 00207 { m_child_exit_flag = 0; }
|
|
Child exit's state.
Definition at line 211 of file Handlers.h. Referenced by child_exited(), handle_signal(), and resetState(). |