lance@unigold.UUCP (Lance Ellinghouse) (10/18/90)
Hello,
I am having problems with Ingres ESQL and Interrupt handling.
What I have is an interrupt handler defined (see below) that
catches SIGINT and sets a variable.
Now under some circumstances this works. Other times I get
dropped out of the application. It seems that if the interrupt
happens DURING a FETCH statement all hell breaks loose and
I get kicked out. If it happens NOT during the FETCH statement, then
things work correctly.
Anyone else having this problem? How can I work around it?
What am I doing wrong?
Here is the sig handler and how it is being called...
(During my FETCH loop, I just check if SigInterrupt==TRUE and cancel
the rest of the loop.)
...
int SigInterrupt=FALSE;
void sigINThandler( int sig )
{
signal(SIGINT,sigINThandler);
SigInterrupt=TRUE;
}
...
main()
{
...
signal(SIGINT,sigINThandler);
...
}
+----------------------------------------------+------------------------------+
|Lance Ellinghouse |Any ideas on what to put here?|
|E-mail: lance@unigold.uucp |I have no idea... :) |
| lance@unigold.sr.com | |
| unigold!lance@srhqla.sr.com | |
| hermix!unigold!lance@anes.ucla.edu +------------------------------+
|USnail Mail: UNIGOLD, 16311 Ventura Blvd. Suite 1100, Encino, Ca, 91436 |
+-----------------------------------------------------------------------------+