Skip to content

Commit

Permalink
Do not create sigwait() thread when JL_OPTIONS_HANDLE_SIGNALS_OFF (#4…
Browse files Browse the repository at this point in the history
…8957)

We already disable part of the signal-handling machinery, but it seems
that this piece was missed for an unknown reason. This is important to
disable so that, e.g. `sigwait()` can be received reliably by the main
application (which may even be another copy of Julia).
  • Loading branch information
topolarity authored Apr 4, 2023
1 parent 50f50a7 commit 822d9b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,9 @@ JL_DLLEXPORT void julia_init(JL_IMAGE_SEARCH rel)
jl_init_uv();
init_stdio();
restore_fp_env();
restore_signals();
if (jl_options.handle_signals == JL_OPTIONS_HANDLE_SIGNALS_ON)
restore_signals();

jl_init_intrinsic_properties();

jl_prep_sanitizers();
Expand Down

0 comments on commit 822d9b8

Please sign in to comment.