home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0021.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.7 KB  |  42 lines

  1. Submitted-by: fred@mindcraft.com (Fred Zlotnick)
  2.  
  3. In article <1992Feb26.202432.17940@uunet.uu.net> WULKAN@TOROLAB6.VNET.IBM.COM ("Mike Wulkan") writes:
  4. >    [ ... ]
  5. >On a similar note, there seems to be a contradiction in the
  6. >section describing SIG_IGN which reads:
  7. >
  8. >  "Delivery of the signal shall have no effect on the process.
  9. >  The behavior of a process is undefined after it ignores a SIGFPE,
  10. >  SIGILL, or SIGSEGV signal ..."
  11. >
  12. >Why would the behavior of a process be UNDEFINED if the signal has NO
  13. >EFFECT on the process?  Obviously the signal has an effect!  Why not
  14. >simply disallow SIG_IGN to be specified for SIGFPE, SIGILL and SIGSEGV as
  15. >is done for SIGKILL and SIGSTOP?  At the very least it would seem that
  16. >the section would be more accurately worded:
  17. >
  18. The signal has no effect.  The reason the behavior is undefined is that
  19. the process has gotten an arithmetic point exception (SIGFPE) or
  20. has executed an illegal instruction (SIGILL) or has referenced an
  21. address outside its address space (SIGSEGV).  After any of these
  22. exceptions, the behavior of the process is undefined.
  23.  
  24. Of course these signals can be generated by other means, for example
  25. through kill() or raise().  These are specifically excluded by the
  26. standard:  The sentence quoted above ends
  27.  
  28.     ...or SIGSEGV signal that was not generated by the kill()
  29.     function or the raise() function defined by the C Standard.
  30.  
  31. Any other event that generates one of these signals is presumably
  32. (i.e., in a reasonable implementation) another type of exception.
  33. ----
  34. Fred Zlotnick            |  "A standard is a treaty between the
  35. fred@mindcraft.com        |   customer and the implementor."
  36. ...!{uupsi,ames}!mindcrf!fred     |            Henry Spencer
  37. #include <std/disclaimer>    |
  38.  
  39.  
  40. Volume-Number: Volume 27, Number 22
  41.  
  42.