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 | b322b1be31927fd27eddc194fee7a2c3ec2a991f (patch) | |
| tree | 8f1f37c29956c434f401d7d5d48ff14f37094e16 /eval.c | |
| parent | 2083a14586299df5967b19caaca972dc78e6b075 (diff) | |
| download | ruby-b322b1be31927fd27eddc194fee7a2c3ec2a991f.tar.gz ruby-b322b1be31927fd27eddc194fee7a2c3ec2a991f.tar.xz ruby-b322b1be31927fd27eddc194fee7a2c3ec2a991f.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/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; } |
