Skip to content

Commit

Permalink
Fix macOS ignoring SIGINT bug
Browse files Browse the repository at this point in the history
Apparently sigprocmask() works different on macOS, too.
  • Loading branch information
vkoskiv committed Nov 3, 2023
1 parent b05b814 commit 65d90a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/platform/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65d90a6

Please sign in to comment.