From 38d3b013b7733d9ccd66c011d74c00b35bb704c4 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 11 May 2012 14:03:40 +0000 Subject: * thread.c (rb_threadptr_execute_interrupts_common): th->errinfo is not Fixnum, but exception object. This causes test_signal_requiring of test/ruby/test_signal.rb fail if the sub process is killed on waiting IO in lex_io_gets in require itself, not sleep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 27504e5e2e..5fb19547cd 100644 --- a/thread.c +++ b/thread.c @@ -1300,7 +1300,7 @@ rb_threadptr_execute_interrupts_common(rb_thread_t *th) thread_debug("rb_thread_execute_interrupts: %"PRIdVALUE"\n", err); if (err == eKillSignal || err == eTerminateSignal) { - th->errinfo = INT2FIX(TAG_FATAL); + th->errinfo = rb_exc_new2(rb_eInterrupt, ""); TH_JUMP_TAG(th, TAG_FATAL); } else { -- cgit v1.2.3