From 3c5728653158054c685c133dfa826d3a24e1a171 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 25 May 2009 09:58:27 -0500 Subject: [PATCH] make sure we disable disabling interrupts on error handler. --- C/errors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/C/errors.c b/C/errors.c index dfdd0c2c7..0fd0d82d5 100644 --- a/C/errors.c +++ b/C/errors.c @@ -1776,6 +1776,7 @@ Yap_Error(yap_error_number type, Term where, char *format,...) LOCK(SignalLock); /* we might be in the middle of a critical region */ if (Yap_InterruptsDisabled) { + Yap_InterruptsDisabled = 0; UncaughtThrow = TRUE; UNLOCK(SignalLock); #if PUSH_REGS