From 65d90a6bd8eae5011b99392bb1ac99135ba99f17 Mon Sep 17 00:00:00 2001 From: Valtteri Koskivuori Date: Sat, 4 Nov 2023 00:59:49 +0200 Subject: [PATCH] Fix macOS ignoring SIGINT bug Apparently sigprocmask() works different on macOS, too. --- src/utils/platform/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/platform/signal.c b/src/utils/platform/signal.c index 28406f46..cbf60f3f 100644 --- a/src/utils/platform/signal.c +++ b/src/utils/platform/signal.c @@ -35,7 +35,7 @@ int registerHandler(enum sigtype type, void (*handler)(int)) { } void block_signals(void) { -#ifndef WINDOWS +#if !defined(WINDOWS) && !defined(__APPLE__) sigset_t mask; sigfillset(&mask); sigprocmask(SIG_SETMASK, &mask, 0);