* 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:
parent
58323cdc6e
commit
28ec52c087
@ -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.
|
||||
|
6
thread.c
6
thread.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user