Skip to content

Commit

Permalink
signal.c: Fix undefined reset_sigmask use on Emscripten
Browse files Browse the repository at this point in the history
3c47114 added a call to `reset_sigmask`
but the guard condition didn't match with the condition used to define
`reset_sigmask`.
  • Loading branch information
kateinoigakukun committed Dec 19, 2023
1 parent f907a71 commit b5f33ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signal.c
Expand Up @@ -403,7 +403,7 @@ interrupt_init(int argc, VALUE *argv, VALUE self)
}

void rb_malloc_info_show_results(void); /* gc.c */
#ifdef POSIX_SIGNAL
#if defined(USE_SIGALTSTACK) || defined(_WIN32)
static void reset_sigmask(int sig);
#endif

Expand All @@ -416,7 +416,7 @@ ruby_default_signal(int sig)
rb_malloc_info_show_results();

signal(sig, SIG_DFL);
#ifdef POSIX_SIGNAL
#if defined(USE_SIGALTSTACK) || defined(_WIN32)
reset_sigmask(sig);
#endif
raise(sig);
Expand Down

0 comments on commit b5f33ba

Please sign in to comment.