summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 12:53:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 12:53:51 +0000
commitcba74f6629bb825421c2d06cc3e8974cbde11a97 (patch)
treefe6b0e66e330f2245a95206d1d74fd73df649b71 /thread.c
parent4f0c2f3b91c699f3fa289dffe7a8aed0adb8d260 (diff)
downloadruby-cba74f6629bb825421c2d06cc3e8974cbde11a97.tar.gz
ruby-cba74f6629bb825421c2d06cc3e8974cbde11a97.tar.xz
ruby-cba74f6629bb825421c2d06cc3e8974cbde11a97.zip
* thread.c (rb_thread_execute_interrupts): delay interrupts during
raising exceptions. [ruby-dev:34855] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 5b48721e7..01007b186 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;