make sure we disable disabling interrupts on error handler.

This commit is contained in:
Vitor Santos Costa 2009-05-25 09:58:27 -05:00
parent 4f71103b88
commit 3c57286531
1 changed files with 1 additions and 0 deletions

View File

@ -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