summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-27 03:43:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-27 03:43:15 +0000
commit3df207c883f111b34b6af22c4ade7b8be357b190 (patch)
tree8f1f37c29956c434f401d7d5d48ff14f37094e16 /eval.c
parentd917f9af979642b88cf8a4a55f7dd4520b7481fb (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 5 insertions, 1 deletions
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;
}