From 28f2a1da54bc3e201cc1c860c909c2b995d6eb22 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 Oct 2003 13:01:21 +0000 Subject: * 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 --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 623c984068..46d5d66229 100644 --- a/eval.c +++ b/eval.c @@ -9676,9 +9676,9 @@ rb_thread_cleanup() FOREACH_THREAD_FROM(curr, th) { if (th->status != THREAD_KILLED) { rb_thread_ready(th); - th->thgroup = 0; - th->priority = 0; if (th != main_thread) { + th->thgroup = 0; + th->priority = 0; th->status = THREAD_TO_KILL; RDATA(th->thread)->dfree = NULL; } -- cgit v1.2.3