diff options
author | Robert Swiecki <robert@swiecki.net> | 2019-03-01 15:29:56 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2019-03-01 15:29:56 +0100 |
commit | 863f88a0a4af300cd014b4860adc8354eb0e15ed (patch) | |
tree | dbf1e0065cfa8850816e604550bd22d1f169106d | |
parent | 9722299e0ff3b4d306ba3c6ddf8b726f302f453a (diff) | |
download | honggfuzz-863f88a0a4af300cd014b4860adc8354eb0e15ed.tar.gz |
use pthread_sigmask instead of sigprocmask in mult-threaded contexts
-rw-r--r-- | honggfuzz.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)"); } } |