diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-27 03:43:15 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-27 03:43:15 +0000 |
commit | 3df207c883f111b34b6af22c4ade7b8be357b190 (patch) | |
tree | 8f1f37c29956c434f401d7d5d48ff14f37094e16 /eval.c | |
parent | d917f9af979642b88cf8a4a55f7dd4520b7481fb (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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |