aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/thread.c b/thread.c
index 763b48ec6b..0b340632d7 100644
--- a/thread.c
+++ b/thread.c
@@ -700,16 +700,7 @@ rb_thread_execute_interrupts(rb_thread_t *th)
th->thrown_errinfo = 0;
thread_debug("rb_thread_execute_interrupts: %ld\n", err);
- if (err == eKillSignal) {
- th->errinfo = INT2FIX(TAG_FATAL);
- TH_JUMP_TAG(th, TAG_FATAL);
- }
- else if (err == eTerminateSignal) {
- /* rewind to toplevel stack */
- while (th->tag->prev) {
- th->tag = th->tag->prev;
- }
-
+ if (err == eKillSignal || err == eTerminateSignal) {
th->errinfo = INT2FIX(TAG_FATAL);
TH_JUMP_TAG(th, TAG_FATAL);
}