Skip to content

Commit

Permalink
Fixed Thread#kill.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jun 18, 2016
1 parent d2930b5 commit 0da995f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion machine/vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ namespace rubinius {
}

if(interrupt_by_kill()) {
set_check_local_interrupts();
if(state->vm()->thread()->current_fiber()->root_p()) {
clear_interrupt_by_kill();
} else {
set_check_local_interrupts();
}

thread_state_.raise_thread_kill();

return true;
Expand Down

0 comments on commit 0da995f

Please sign in to comment.