diff options
Diffstat (limited to 'src/signalController.cpp')
-rw-r--r-- | src/signalController.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/signalController.cpp b/src/signalController.cpp index cef743f..8d9c78f 100644 --- a/src/signalController.cpp +++ b/src/signalController.cpp @@ -116,7 +116,12 @@ void SignalController::init() sigdelset(&signal_set, SIGSEGV); sigdelset(&signal_set, SIGBUS); sigdelset(&signal_set, SIGFPE); - pthread_sigmask(SIG_BLOCK, &signal_set, NULL); // TODO: remove ugly workaround + +#if defined(BOOST_HAS_PTHREADS) + pthread_sigmask(SIG_BLOCK, &signal_set, NULL); +#else +#error The signalhandler works only with pthreads +#endif thread = new boost::thread(boost::bind(handle, this)); |