Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/cysignals/implementation.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ static void _sig_off_warning(const char* file, int line)

static void setup_alt_stack(void)
{
#if HAVE_SIGALTSTACK
#if HAVE_SIGALTSTACK && !defined(__EMSCRIPTEN__)
/* Space for the alternate signal stack. The size should be
* of the form MINSIGSTKSZ + constant. The constant is chosen rather
* ad hoc but sufficiently large.
Expand Down Expand Up @@ -576,7 +576,9 @@ static void setup_cysignals_handlers(void)
* After setting up the trampoline, we reset the signal mask. */
sigprocmask(SIG_BLOCK, &sa.sa_mask, &default_sigmask);
#endif
#if !defined(__EMSCRIPTEN__)
setup_trampoline();
#endif
#if HAVE_SIGPROCMASK
sigprocmask(SIG_SETMASK, &default_sigmask, &sigmask_with_sigint);
#endif
Expand Down