diff --git a/runtime/include/software_interrupt.h b/runtime/include/software_interrupt.h index 49c93a7..3e17aa5 100644 --- a/runtime/include/software_interrupt.h +++ b/runtime/include/software_interrupt.h @@ -9,6 +9,8 @@ #include #include +#include "debuglog.h" + #define SOFTWARE_INTERRUPT_TIME_TO_START_IN_USEC (10 * 1000) /* 10 ms */ #define SOFTWARE_INTERRUPT_INTERVAL_DURATION_IN_USEC (5 * 1000) /* 5 ms */ @@ -69,8 +71,7 @@ software_interrupt_mask_signal(int signal) sigaddset(&set, signal); return_code = pthread_sigmask(SIG_BLOCK, &set, NULL); if (return_code != 0) { - errno = return_code; - perror("pthread_sigmask"); + debuglog("pthread_sigmask: %s", strerror(return_code)); exit(-1); }