Skip to content

Commit

Permalink
Don't return dead threads by Thread.list
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed May 18, 2012
1 parent f32161f commit 65cfc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/shared_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace rubinius {
++i) {
if(VM* vm = (*i)->as_vm()) {
Thread *thread = vm->thread.get();
if(!thread->signal_handler_thread_p()) {
if(!thread->signal_handler_thread_p() && CBOOL(thread->alive())) {
threads->append(state, (Object*)thread);
}
}
Expand Down

0 comments on commit 65cfc23

Please sign in to comment.