* thread.c (thread_start_func_2): do not delete main thread from

living_threads.  [ruby-core:19385], [ruby-core:22158]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-02-18 01:29:13 +00:00
parent 58323cdc6e
commit 28ec52c087
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Wed Feb 18 10:29:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (thread_start_func_2): do not delete main thread from
living_threads. [ruby-core:19385], [ruby-core:22158]
Wed Feb 18 01:05:05 2009 Tanaka Akira <akr@fsij.org>
* ext/openssl: avoid cyclic require.

View File

@ -440,8 +440,10 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
th->keeping_mutexes = NULL;
}
/* delete self from living_threads */
st_delete_wrap(th->vm->living_threads, th->self);
/* delete self other than main thread from living_threads */
if (th != main_th) {
st_delete_wrap(th->vm->living_threads, th->self);
}
/* wake up joinning threads */
join_th = th->join_list_head;