should exit if interrupts *are* disabled.

This commit is contained in:
Vitor Santos Costa 2009-05-24 19:19:22 -05:00
parent 99ac4f4d4a
commit 46dc2b1a49
1 changed files with 1 additions and 1 deletions

View File

@ -1775,7 +1775,7 @@ Yap_Error(yap_error_number type, Term where, char *format,...)
Yap_PrologMode &= ~InErrorMode;
LOCK(SignalLock);
/* we might be in the middle of a critical region */
if (!Yap_InterruptsDisabled) {
if (Yap_InterruptsDisabled) {
UncaughtThrow = TRUE;
UNLOCK(SignalLock);
#if PUSH_REGS