From 6957c6d9cf0b6a1e211c4b0175bc5474296f2031 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 1 Jul 2010 07:25:20 +0000 Subject: * thread_pthread.c (thread_start_func_1): don't call native_thread_init_stack(th) on cygwin to avoid the segv introduced by r27789. Cygwin's signal implementation is half baked so USE_SIGNALSTACK is not defined and it needs another treatment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 99edbc62e1..e974b73e6f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -356,7 +356,9 @@ thread_start_func_1(void *th_ptr) rb_thread_t *th = th_ptr; VALUE stack_start; +#ifndef __CYGWIN__ native_thread_init_stack(th); +#endif /* run */ thread_start_func_2(th, &stack_start, rb_ia64_bsp()); } -- cgit v1.2.3