From a04df27e72aa8e1f5940e80e8646d046977f5198 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 16 Jan 2009 03:42:50 +0000 Subject: [PATCH] * 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/trunk@21592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ thread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a2426130b..82952cbeaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 16 12:24:39 2009 Koichi Sasada + + * thread.c (thread_start_func_2): call ruby_cleanup() if thread is + main thread. [ruby-dev:37624] + Fri Jan 16 12:27:50 2009 NAKAMURA Usaku * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc, diff --git a/thread.c b/thread.c index 96c74a66b4..e5f93e1408 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);