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

  1. Submitted-by: WULKAN@TOROLAB6.VNET.IBM.COM ("Mike Wulkan")
  2.  
  3. In article <1992Feb22.232957.16129@uunet.uu.net>,
  4. karish@mindcraft.com (Chuck Karish) writes:
  5.  
  6. >SIGFPE, SIGILL, and SIGSEGV are the signal names defined by
  7. >POSIX.1 that correspond to computational exceptions.  Elsewhere
  8. >in POSIX.1 it is stated that the implementation may generate
  9. >other, implementation-defined signals.  The names of these
  10. >signals and the conditions under which they are generated
  11. >are to be documented in the POSIX conformance document.
  12. >
  13. >POSIX.1 tries not to keep the implementation from providing
  14. >additional signals or errno values that give more information
  15. >to the programmer, as long as the base behavior specified
  16. >by the Standard is also supported and the appropriate
  17. >documentation is provided.
  18.  
  19. I had no question regarding additional implementation defined signals.
  20. My question was whether an implementation could choose to designate one
  21. of the other Posix defined signals as "computational" with regards to
  22. the undefined behaviour when returning from a handler?  I think the
  23. answer is no.
  24.  
  25. On a similar note, there seems to be a contradiction in the
  26. section describing SIG_IGN which reads:
  27.  
  28.   "Delivery of the signal shall have no effect on the process.
  29.   The behavior of a process is undefined after it ignores a SIGFPE,
  30.   SIGILL, or SIGSEGV signal ..."
  31.  
  32. Why would the behavior of a process be UNDEFINED if the signal has NO
  33. EFFECT on the process?  Obviously the signal has an effect!  Why not
  34. simply disallow SIG_IGN to be specified for SIGFPE, SIGILL and SIGSEGV as
  35. is done for SIGKILL and SIGSTOP?  At the very least it would seem that
  36. the section would be more accurately worded:
  37.  
  38.   The behavior of the process is undefined after a SIGFPE, SIGILL, or
  39.   SIGSEGV signal is delivered, otherwise delivery of the signal shall
  40.   have no effect on the process.
  41.  
  42. Mike Wulkan
  43.  
  44.  
  45. Volume-Number: Volume 27, Number 15
  46.  
  47.