From 86327765f32b3158bc442b88eb39ae473b08bfa4 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 6 Nov 2003 16:08:26 +0000 Subject: [PATCH] * eval.c (rb_load): save and restore rb_prohibit_interrupt. [ruby-dev:21857] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 39b079f861..0dd9a81f08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 7 01:03:16 2003 Yukihiro Matsumoto + + * eval.c (rb_load): save and restore rb_prohibit_interrupt. + [ruby-dev:21857] + Thu Nov 6 18:05:07 2003 Nobuyoshi Nakada * io.c (rb_io_inspect): show the path also at a closed file. diff --git a/eval.c b/eval.c index 48b133ed76..de8408170d 100644 --- a/eval.c +++ b/eval.c @@ -5773,6 +5773,7 @@ rb_load(fname, wrap) { VALUE tmp; int state; + volatile int prohibit_int = rb_prohibit_interrupt; volatile ID last_func; volatile VALUE wrapper = 0; volatile VALUE self = ruby_top_self; @@ -5850,6 +5851,7 @@ rb_load(fname, wrap) free(ruby_scope->local_tbl); } POP_TAG(); + rb_prohibit_interrupt = prohibit_int; ruby_cref = saved_cref; POP_SCOPE(); POP_FRAME();