/** Sets up the signal handling for a non-threaded program. When the program This uses the system call signal(2). This should not be used if you have a threaded program. @see createHandlerThreaded */ AREXPORT void ArSignalHandler::createHandlerNonThreaded() { int i; initSigMap(); signal(SigSEGV, &signalCB); signal(SigFPE, &signalCB); for (i=1; i <= SigPWR; ++i) { if (sigismember(&ourBlockSigSet, i)) signal(i, SIG_IGN); if (sigismember(&ourHandleSigSet, i)) signal(i, &signalCB); } }
ArSignalHandler::ArSignalHandler() { setThreadName("ArSignalHandler"); initSigMap(); }
ArSignalHandler::ArSignalHandler() : ourIgnoreQUIT(false) { setThreadName("ArSignalHandler"); initSigMap(); }