From 863f88a0a4af300cd014b4860adc8354eb0e15ed Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Fri, 1 Mar 2019 15:29:56 +0100 Subject: use pthread_sigmask instead of sigprocmask in mult-threaded contexts --- honggfuzz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honggfuzz.c b/honggfuzz.c index 450c12b0..02cd5fba 100644 --- a/honggfuzz.c +++ b/honggfuzz.c @@ -178,7 +178,7 @@ static void setupSignalsMainThread(void) { sigaddset(&ss, SIGINT); sigaddset(&ss, SIGQUIT); sigaddset(&ss, SIGALRM); - if (sigprocmask(SIG_UNBLOCK, &ss, NULL) != 0) { + if (pthread_sigmask(SIG_UNBLOCK, &ss, NULL) != 0) { PLOG_F("pthread_sigmask(SIG_UNBLOCK)"); } } -- cgit v1.2.3