* eval.c (rb_thread_cleanup): keep thread group for main thread.
[ruby-dev:21644] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
229c37a6da
commit
28f2a1da54
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 20 22:01:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (rb_thread_cleanup): keep thread group for main thread.
|
||||||
|
[ruby-dev:21644]
|
||||||
|
|
||||||
Mon Oct 20 18:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Oct 20 18:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_catch): backout.
|
* eval.c (rb_catch): backout.
|
||||||
|
4
eval.c
4
eval.c
@ -9676,9 +9676,9 @@ rb_thread_cleanup()
|
|||||||
FOREACH_THREAD_FROM(curr, th) {
|
FOREACH_THREAD_FROM(curr, th) {
|
||||||
if (th->status != THREAD_KILLED) {
|
if (th->status != THREAD_KILLED) {
|
||||||
rb_thread_ready(th);
|
rb_thread_ready(th);
|
||||||
th->thgroup = 0;
|
|
||||||
th->priority = 0;
|
|
||||||
if (th != main_thread) {
|
if (th != main_thread) {
|
||||||
|
th->thgroup = 0;
|
||||||
|
th->priority = 0;
|
||||||
th->status = THREAD_TO_KILL;
|
th->status = THREAD_TO_KILL;
|
||||||
RDATA(th->thread)->dfree = NULL;
|
RDATA(th->thread)->dfree = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user