From 3df207c883f111b34b6af22c4ade7b8be357b190 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Sep 2000 03:43:15 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 4adeb4ce54..833b9b0428 100644 --- a/eval.c +++ b/eval.c @@ -7149,7 +7149,11 @@ rb_thread_schedule() } FOREACH_THREAD_FROM(curr, th) { - if (th->status <= THREAD_RUNNABLE) { + if (th->status == THREAD_TO_KILL) { + next = th; + break; + } + if (th->status == THREAD_RUNNABLE) { if (!next || next->priority < th->priority) next = th; } -- cgit v1.2.3