* eval.c (rb_thread_schedule): current thread may be dead when
deadlock. (ruby-bugs:PR#588) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ef1062c6f
commit
168f2f470f
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 13 01:30:10 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* eval.c (rb_thread_schedule): current thread may be dead when
|
||||||
|
deadlock. (ruby-bugs:PR#588)
|
||||||
|
|
||||||
Thu Feb 13 00:09:47 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Thu Feb 13 00:09:47 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* file.c (strrdirsep): ignore trailing directory separators.
|
* file.c (strrdirsep): ignore trailing directory separators.
|
||||||
|
4
eval.c
4
eval.c
@ -8230,7 +8230,9 @@ rb_thread_schedule()
|
|||||||
next = main_thread;
|
next = main_thread;
|
||||||
rb_thread_ready(next);
|
rb_thread_ready(next);
|
||||||
next->status = THREAD_TO_KILL;
|
next->status = THREAD_TO_KILL;
|
||||||
rb_thread_save_context(curr_thread);
|
if (!rb_thread_dead(curr_thread)) {
|
||||||
|
rb_thread_save_context(curr_thread);
|
||||||
|
}
|
||||||
rb_thread_deadlock();
|
rb_thread_deadlock();
|
||||||
}
|
}
|
||||||
next->wait_for = 0;
|
next->wait_for = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user