aboutsummaryrefslogtreecommitdiffstats
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
commitbcb57421cb140e708a78911ddf4cd553d6b60d52 (patch)
treefe6b0e66e330f2245a95206d1d74fd73df649b71
parent77446d45a819cdaede88300f33e1b4c859a1163c (diff)
downloadruby-bcb57421cb140e708a78911ddf4cd553d6b60d52.tar.gz
* thread.c (rb_thread_execute_interrupts): delay interrupts during
raising exceptions. [ruby-dev:34855] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--thread.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bccfe4b514..845906fbb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 27 21:53:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_execute_interrupts): delay interrupts during
+ raising exceptions. [ruby-dev:34855]
+
Tue May 27 20:18:30 2008 Akinori MUSHA <knu@iDaemons.org>
* array.c (rb_ary_slice_bang): Return an empty array instead of
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;