1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2009-01-16 03:42:50 +00:00
parent c68fdad473
commit a04df27e72
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Jan 16 12:24:39 2009 Koichi Sasada <ko1@atdot.net>
* 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 <usa@ruby-lang.org>
* win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,

View file

@ -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);