home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!spool.mu.edu!agate!ames!pacbell.com!rtech!odinba!karl
- From: karl@BofA.com (Karl Nicholas)
- Subject: Re: XVIEW and INGRES compatability problem! HELP!
- Message-ID: <1993Jan21.185925.2467@BofA.com>
- Organization: Bank of America, Capital Products, RMTG #5906
- References: <1993Jan20.040019.11802@BofA.com> <105904@netnews.upenn.edu>
- Date: Thu, 21 Jan 93 18:59:25 GMT
- Lines: 88
-
- In article <105904@netnews.upenn.edu> jarnot@kin.lap.upenn.edu (Kevin J. Jarnot) writes:
- >In article <1993Jan20.040019.11802@BofA.com> karl@BofA.COM (Karl Nicholas) writes:
- >
- > I came up with a quick fix in a sleepless haze over the weekend (don't
- >you love when problems like this pop up two weeks before a deadline? ;-)
- >Use the following function call:
- >
-
- Here is what I got from ingres (sort of). Pretty much the same thing.
-
- From rtech!ingres.com!jbryson Wed Jan 20 10:20:07 1993
- Date: Wed, 20 Jan 93 10:16:02 PST
- From: jbryson@ingres.com (Jeff Bryson)
- To: karl@BofA.COM
- Subject: re:XVIEW and INGRES compatability problem
- Content-Length: 1531
- Status: RO
- X-Lines: 63
-
- Karl,
-
- Attached are two workarounds for your problem.
-
- Ingres support will tell you that the workarounds are "UNSUPPORTED"....
- but both will work, I have told many people about these workarounds and
- no one has had any trouble.
-
- The problem is really openwin and ESQL CONNECT.
- Ingres sets most(if not all) signals to QUIT! I am not sure
- why this change happened, but, starting in 6.4 it did.
-
- Ingres support does know about this and there are several
- BUGS/SIRS entered for this problem - #20493 and #44401
- are just two of them.
-
- Good Luck,
-
- Jeff Bryson
- ex-ESQL Support
-
- ---------------------------------------------------------------------
- /********************************************/
- /* The easy Workaround */
- /* set signal to the default */
- /********************************************/
- #include <stdio.h>
- #include <signal.h>
-
- main()
- {
- EXEC SQL CONNECT supp60;
-
- signal (SIGALRM, SIG_DFL); /* just set signal to the default */
-
- /* ... do your code here... */
-
- EXEC SQL DISCONNECT;
- }
-
-
-
- /********************************************/
- /* Workaround #2 */
- /* Save the original signal */
- /********************************************/
- #include <stdio.h>
- #include <signal.h>
-
- void (*oldhand)();
-
- main()
- {
- oldhand = signal (SIGALRM, SIG_DFL); /* save the original signal */
-
- EXEC SQL CONNECT supp60;
-
- signal (SIGALRM, oldhand); /* restore the original signal */
-
- /* ... do your code here... */
-
- EXEC SQL DISCONNECT;
- }
-
- --
- +---------------------------------------------------------------------------+
- | Karl Nicholas (415) 953-0409 | Beer is good food. Food is not beer. |
- | karl@BofA.COM uunet!odinba!karl | *** BofA is not me, I am not BofA *** |
- +---------------------------------------------------------------------------+
-