aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 8fc02ec534..485c1462eb 100644
--- a/thread.c
+++ b/thread.c
@@ -417,6 +417,11 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
rb_thread_t *join_th;
rb_thread_t *main_th;
VALUE errinfo = Qnil;
+# ifdef USE_SIGALTSTACK
+ void rb_register_sigaltstack(rb_thread_t *th);
+
+ rb_register_sigaltstack(th);
+# endif
ruby_thread_set_native(th);