fixes for signal handling

This commit is contained in:
Vítor Santos Costa
2014-09-02 22:24:01 -05:00
parent 99713d81a6
commit b942c1ef13
3 changed files with 2 additions and 5 deletions

View File

@@ -1520,6 +1520,7 @@ ReceiveSignal (int s, void *x, void *y)
{
CACHE_REGS
LOCAL_PrologMode |= InterruptMode;
my_signal (s, ReceiveSignal);
switch (s)
{
case SIGINT:
@@ -1577,6 +1578,7 @@ ReceiveSignal (int s, void *x, void *y)
fprintf(stderr, "\n[ Unexpected signal ]\n");
exit (s);
}
LOCAL_PrologMode &= ~InterruptMode;
}
#endif