summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 5b48721e71..01007b1862 100644
--- a/thread.c
+++ b/thread.c
@@ -814,6 +814,7 @@ thread_s_pass(VALUE klass)
void
rb_thread_execute_interrupts(rb_thread_t *th)
{
+ if (th->raised_flag) return;
while (th->interrupt_flag) {
int status = th->status;
th->status = THREAD_RUNNABLE;