From 8801fecb82fec5eb731a4ef7987d6145cecd60eb Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 16 Jan 2009 04:07:31 +0000 Subject: merges r21592 from trunk into ruby_1_9_1. * thread.c (thread_start_func_2): call ruby_cleanup() if thread is main thread. [ruby-dev:37624] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 6459ba7a0c..7acf191ffb 100644 --- a/thread.c +++ b/thread.c @@ -463,7 +463,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s } thread_cleanup_func(th); if (th->vm->main_thread == th) { - rb_thread_stop_timer_thread(); + ruby_cleanup(state); } native_mutex_unlock(&th->vm->global_vm_lock); -- cgit v1.2.3