summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-16 12:15:59 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-16 12:15:59 +0000
commit63034a52b88c7e6f4e54dc159b909f1ac535e6b1 (patch)
treee103994cc8ce6895d948b145c550ffe8a5a95d75 /thread.c
parent28b215880de82ee82061b3cd244bf3e47058ed53 (diff)
merges r27789 from trunk into ruby_1_9_2.
-- * vm_core.c (rb_thread_struct): add a field for sigaltstack. * thread_pthread.c (thread_start_func_1): initialize machine stack information. * thread.c (thread_start_func_2): set sigaltstack for each sub thread. [ruby-core:24540] [ruby-core:30207] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);