summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/eval.c b/eval.c
index a8f68392b9..6369df8025 100644
--- a/eval.c
+++ b/eval.c
@@ -4739,11 +4739,13 @@ rb_with_disable_interrupt(proc, data)
int status;
DEFER_INTS;
- PUSH_TAG(PROT_NONE);
- if ((status = EXEC_TAG()) == 0) {
- result = (*proc)(data);
- }
- POP_TAG();
+ RUBY_CRITICAL(
+ PUSH_TAG(PROT_NONE);
+ if ((status = EXEC_TAG()) == 0) {
+ result = (*proc)(data);
+ }
+ POP_TAG();
+ );
ALLOW_INTS;
if (status) JUMP_TAG(status);