home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.27 / text0017.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.1 KB  |  29 lines

  1. Submitted-by: WULKAN@TOROLAB6.VNET.IBM.COM ("Mike Wulkan")
  2.  
  3. In article <1992Feb26.225705.1510@uunet.uu.net>,
  4. mib@geech.gnu.ai.mit.edu (Michael I Bushnell) writes:
  5.  
  6. >If you just do `kill -ILL 387', and process 387 has set the handler
  7. >for SIGILL to SIG_IGN, truly nothing should happen.  I believe Posix
  8. >should specify this, but I don't believe it does.
  9. >
  10. >The confusion here is between the hardware (implementation-defined)
  11. >event causing the signal and the signal itself.
  12. >
  13. >Your suggested fix is not adequate, however.  People should be able to
  14. >catch illegal references in programs, and then be able to exit nicely.
  15. >Your "fix" precludes doing so portably.
  16.  
  17. No, my "fix" was only in reference to SIG_IGN.  You can still specify
  18. a signal catching function and then longjmp, exit or abort "nicely".
  19. There is nothing portable about the current Posix definition of
  20. ignoring (via SIG_IGN) a SIGSEGV, SIGILL or SIGFPE signal since it
  21. specifically says that the behavior of the process after the signal
  22. is delivered is undefined.
  23.  
  24. Mike Wulkan
  25.  
  26.  
  27. Volume-Number: Volume 27, Number 19
  28.  
  29.