45 sigemptyset(&ensemble);
46 sigaddset(&ensemble, SIGABRT);
47 sigaddset(&ensemble, SIGILL);
48 sigaddset(&ensemble, SIGBUS);
49 sigaddset(&ensemble, SIGSEGV);
51 pthread_sigmask(SIG_BLOCK, &ensemble,
nullptr);
68 std::cerr <<
"Worker: SIGNAL CAUGHT " << signal <<
"\n";
82 int pipeEnds[2] = {0, 0};
103 struct sigaction act;
105 act.sa_flags = SA_SIGINFO;
106 sigemptyset(&act.sa_mask);
107 sigaction(SIGABRT, &act,
nullptr);
108 sigaction(SIGILL, &act,
nullptr);
109 sigaction(SIGBUS, &act,
nullptr);
110 sigaction(SIGSEGV, &act,
nullptr);
111 sigaction(
SIGTERM, &act,
nullptr);
131 signal(sig, SIG_DFL);