From e02b469de182c1d87ead38fa82630eaaee75c379 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 24 Jul 2003 05:18:47 +0000 Subject: * eval.c (thgroup_add): no warning for terminated threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index f84e5f0630..13f9bec54a 100644 --- a/eval.c +++ b/eval.c @@ -9024,7 +9024,6 @@ rb_thread_kill(thread) if (th == th->next || th == main_thread) rb_exit(0); rb_thread_ready(th); - th->thgroup = 0; th->status = THREAD_TO_KILL; if (!rb_thread_critical) rb_thread_schedule(); return thread; @@ -9965,8 +9964,7 @@ thgroup_add(group, thread) } if (!th->thgroup) { - rb_warn("terminated thread"); - return group; + return Qnil; } if (OBJ_FROZEN(th->thgroup)) { rb_raise(rb_eThreadError, "can't move from the frozen thread group"); -- cgit v1.2.3