home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / ingres / 2337 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.9 KB  |  99 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!spool.mu.edu!agate!ames!pacbell.com!rtech!odinba!karl
  3. From: karl@BofA.com (Karl Nicholas)
  4. Subject: Re: XVIEW and INGRES compatability problem! HELP!
  5. Message-ID: <1993Jan21.185925.2467@BofA.com>
  6. Organization: Bank of America, Capital Products, RMTG #5906
  7. References: <1993Jan20.040019.11802@BofA.com> <105904@netnews.upenn.edu>
  8. Date: Thu, 21 Jan 93 18:59:25 GMT
  9. Lines: 88
  10.  
  11. In article <105904@netnews.upenn.edu> jarnot@kin.lap.upenn.edu (Kevin J. Jarnot) writes:
  12. >In article <1993Jan20.040019.11802@BofA.com> karl@BofA.COM (Karl Nicholas) writes:
  13. >
  14. >    I came up with a quick fix in a sleepless haze over the weekend (don't
  15. >you love when problems like this pop up two weeks before a deadline? ;-)
  16. >Use the following function call:
  17. >
  18.  
  19. Here is what I got from ingres (sort of). Pretty much the same thing.
  20.  
  21. From rtech!ingres.com!jbryson Wed Jan 20 10:20:07 1993
  22. Date: Wed, 20 Jan 93 10:16:02 PST
  23. From: jbryson@ingres.com (Jeff Bryson)
  24. To: karl@BofA.COM
  25. Subject: re:XVIEW and INGRES compatability problem
  26. Content-Length: 1531
  27. Status: RO
  28. X-Lines: 63
  29.  
  30. Karl,
  31.  
  32. Attached are two workarounds for your problem.
  33.  
  34. Ingres support will tell you that the workarounds are "UNSUPPORTED"....
  35. but both will work, I have told many people about these workarounds and
  36. no one has had any trouble.
  37.  
  38. The problem is really openwin and ESQL CONNECT.
  39. Ingres sets most(if not all) signals to QUIT!  I am not sure
  40. why this change happened, but, starting in 6.4 it did.
  41.  
  42. Ingres support does know about this and there are several
  43. BUGS/SIRS entered for this problem - #20493 and #44401
  44. are just two of them.
  45.  
  46. Good Luck,
  47.  
  48. Jeff Bryson
  49. ex-ESQL Support
  50.  
  51. ---------------------------------------------------------------------
  52. /********************************************/
  53. /* The easy Workaround                      */
  54. /* set signal to the default                */
  55. /********************************************/
  56. #include <stdio.h>
  57. #include <signal.h>
  58.  
  59. main()
  60. {
  61.   EXEC SQL CONNECT supp60;
  62.  
  63.   signal (SIGALRM, SIG_DFL);    /* just set signal to the default */
  64.  
  65.   /* ... do your code here... */
  66.  
  67.   EXEC SQL DISCONNECT;
  68. }
  69.  
  70.  
  71.  
  72. /********************************************/
  73. /* Workaround #2                            */
  74. /* Save the original signal                 */
  75. /********************************************/
  76. #include <stdio.h>
  77. #include <signal.h>
  78.  
  79. void    (*oldhand)();
  80.  
  81. main()
  82. {
  83.   oldhand = signal (SIGALRM, SIG_DFL);  /* save the original signal */
  84.  
  85.   EXEC SQL CONNECT supp60;
  86.  
  87.   signal (SIGALRM, oldhand);            /* restore the original signal */
  88.  
  89.   /* ... do your code here... */
  90.  
  91.   EXEC SQL DISCONNECT;
  92. }
  93.  
  94. -- 
  95.  +---------------------------------------------------------------------------+
  96.  | Karl Nicholas   (415) 953-0409    | Beer is good food.  Food is not beer. |
  97.  | karl@BofA.COM   uunet!odinba!karl | *** BofA is not me, I am not BofA *** |
  98.  +---------------------------------------------------------------------------+
  99.