Article View: net.lang.prolog
Article #724A fix for C-Prolog Ctrl-C handler problem
From: andrew
Date: Fri, 18 Jul 1986 19:19
Date: Fri, 18 Jul 1986 19:19
23 lines
1209 bytes
1209 bytes
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
Technical Details
Message-ID:
<384@yetti.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcs!mnetor!yetti!andrewShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!yetti!andrew From: andrew@yetti.UUCP Newsgroups: net.lang.prolog Subject: A fix for C-Prolog Ctrl-C handler problem Message-ID: <384@yetti.UUCP> Date: Fri, 18-Jul-86 15:19:31 EDT Article-I.D.: yetti.384 Posted: Fri Jul 18 15:19:31 1986 Date-Received: Fri, 18-Jul-86 19:19:36 EDT Reply-To: andrew@yetti.UUCP (Andrew Rau-Chaplin) Organization: York University Computer Science Lines: 23