38#ifndef BLOCXX_SIGNALSCOPE_HPP_INCLUDE_GUARD_
39#define BLOCXX_SIGNALSCOPE_HPP_INCLUDE_GUARD_
40#include "blocxx/BLOCXX_config.h"
45#define SIG_IGN (void (*)())1
57const int BLOCXX_SIGBUS = SIGBUS;
76 struct sigaction saNew;
77 saNew.sa_handler = handler;
78 sigemptyset(&saNew.sa_mask);
80 sigaction(m_sig, &saNew, &m_oldHandler);
86 sigaction(m_sig, &m_oldHandler, 0);
94 struct sigaction m_oldHandler;
SignalScope(int sig, sighandler_t handler)
SignalScope(const SignalScope &)
const SignalScope & operator=(const SignalScope &)
void(* sighandler_t)(int)