Skip to content

Initial patch for emscripten / pyodide support #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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