home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13063 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!munnari.oz.au!mips!mips!odin!sgihub!zola!zuni!anchor!olson
  3. From: olson@anchor.esd.sgi.com (Dave Olson)
  4. Subject: Re: Problems with signal handling.
  5. Message-ID: <p8a1m4k@zuni.esd.sgi.com>
  6. Keywords: signal
  7. Sender: news@zuni.esd.sgi.com (Net News)
  8. Organization:  Silicon Graphics, Inc.  Mountain View, CA
  9. References: <1992Aug30.210156.11419@cc.umontreal.ca>
  10. Date: Mon, 31 Aug 92 02:54:36 GMT
  11. Lines: 27
  12.  
  13. In <1992Aug30.210156.11419@cc.umontreal.ca> gaumondp@ERE.UMontreal.CA (Gaumond Pierre) writes:
  14.  
  15. | I am on a 4D380 SGI machine under IRIX 4.0.1.
  16. | I am using a function to catch "bus error" and "segmentation fault". I call 
  17. | signal(2) once with SIGBUS and once with SIGSEGV. The same function is used to 
  18. | catch both signals.
  19. | I receive the good signal when the function is entered but, with SIGSEGV, the 
  20. | code is not one of those expected (if I refer to the manual). The numeric value 
  21. | is "4", corresponding to EINTR (interrupted system call).
  22.  
  23. To the best of my knowledge, there is no argument to signal handlers
  24. that corresponds to any values of errno, except in a few carefully
  25. specified cases where the signal is initiated by the kernel (and only
  26. for BSD and POSIX signals).  Are you sure that these are in fact the
  27. cases that you are dealing with?
  28.  
  29. The reference to EACCESS instead of EACCES is a bug; there are 
  30. a surprising number of man pages with this problem.  I've filed
  31. internal bugs to get them fixed in the next release.
  32.  
  33. --
  34. Let no one tell me that silence gives consent,  |   Dave Olson
  35. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  36.     Maria Isabel Barreno                        |   olson@sgi.com
  37.