[net.lang.prolog] A fix for C-Prolog Ctrl-C handler problem

andrew@yetti.UUCP (07/18/86)

The control-C handler in C-PROLOG (V1.5) does not always function correctly.
Under some circumstances it does not interrupt the program flow and forces
one to control-Y out of the program.  Here is a fix for this problem.
We are not proud of it, but it works.
     
Replace the function called interrupt in the sysbits.c file with the following
function.
     
Interrupt()
{
        debug = TRUE;
        sklev = 1000000;
        signal(SIGINT,TakeSignal);
}
     
This function will take you immediately into the debugger upon using control-C.
From there you may abort or use any of the standard debug options.
     
     
				Andrew
				us: utzoo!yetti!andrew
				bi: andrew@yuyetti
				    project5@yusol