182 void flags (
int new_flags_);
226 sigemptyset(&
m_sa.sa_mask);
238 m_sa.sa_flags = flags_;
239 if (sig_mask_ == NULL) {
240 sigemptyset(&
m_sa.sa_mask);
250 m_sa.sa_mask = **sig_mask_;
264 m_sa.sa_flags = flags_;
265 if (sig_mask_ == NULL) {
266 sigemptyset(&
m_sa.sa_mask);
270 m_sa.sa_mask = **sig_mask_;
275 sigaction (signum_, &
m_sa, 0);
301 m_sa.sa_flags = new_flags_;
310 return m_sa.sa_flags;
319 m_sa.sa_mask = *mask_set_;
365 struct sigaction *osa = oaction_ == 0 ? 0 : oaction_->
action();
366 return sigaction(signum_, &
m_sa, osa);
376 return sigaction(signum_, &
m_sa, 0);
385 return sigaction(signum_, 0, &
m_sa);
388 #endif // !defined(WIN32)
struct sigaction SIGACTION
SigSet is a wrapper for UNIX sigset_t structure that provides all manipulators on this structure as w...
SIGACTION * action()
Retrieve current sigaction.
int register_action(int signum_, SigAction *oaction_=0)
Register this object as current disposition for signal signum_, and store old disposition in oaction_...
int flags()
Retrieve current flags.
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
A collection of assert function wrappers.
SigSet mask()
Retrieve current signal mask.
int restore_action(int signum_, SigAction &oaction_)
Change object's disposition to oaction_, and install it as current disposition for the signal signum_...
void action(SIGACTION *sa_)
Set sigaction structure to sa_.
int retrieve_action(int signum_)
Retrieve current disposition for the signal signum_ into this object.
C_SIG_HANDLER handler()
Retrieve current signal handler function.
void(* C_SIG_HANDLER)(int)
Class SigACtion messages.
SigAction()
Default constructor creates SigAction object with null-action.
SIGACTION m_sa
sigaction structure itself