From f93a18e6855b6c6c62071250dda1a1c2f4a22936 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Sun, 23 Aug 2020 10:32:00 -0400 Subject: [PATCH] chore: change perror to debuglog --- runtime/include/software_interrupt.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }