home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
-
- In article <1992Feb26.202432.17940@uunet.uu.net> WULKAN@TOROLAB6.VNET.IBM.COM ("Mike Wulkan") writes:
- >On a similar note, there seems to be a contradiction in the
- >section describing SIG_IGN which reads:
- > "Delivery of the signal shall have no effect on the process.
- > The behavior of a process is undefined after it ignores a SIGFPE,
- > SIGILL, or SIGSEGV signal ..."
- >Why would the behavior of a process be UNDEFINED if the signal has NO
- >EFFECT on the process? Obviously the signal has an effect!
-
- The first sentence states the general rule; the second then modifies it
- with particular exceptions. That in fact reflects the way the signal
- mechanism evolved and the way that we think about it.
-
- >Why not simply disallow SIG_IGN to be specified for SIGFPE, SIGILL and
- >SIGSEGV as is done for SIGKILL and SIGSTOP?
-
- The effect as worded is to render such programs not maximally portable
- anyway. (In Standard C parlance they would be "not strictly conforming".)
-
- In the course of preparing such standards, often there was political
- pressure to "not disallow" certain examples of existing programming
- practice. Whenever the standard really could not promise semantics
- for such constructs, there was the choice of forbidding them (and in
- the case of the C language standard, requiring a diagnostic) or
- allowing them with caveats about their non-portability. Often the
- latter was more acceptable to the standards group than the former.
- I no longer recall why our signals working subgroup ended up with the
- exact wording you cited, but my guess is it was partly practical
- politics aimed at arriving at a consensus.
-
- >At the very least it would seem that
- >the section would be more accurately worded:
- > The behavior of the process is undefined after a SIGFPE, SIGILL, or
- > SIGSEGV signal is delivered, otherwise delivery of the signal shall
- > have no effect on the process.
-
- The time to make such comments is during the public review of the
- proposed standard. You missed that by several years.
-
-
- Volume-Number: Volume 27, Number 18
-
-