* maxmagna:
I am looking for material that describes how *precisely* UNIX-based
signals interact with the normal C++ execution flow of control and
guidelines on how to treat signals in an "object-oriented style".
So far I have not been able to locate much on the subject. Can anyone
provide any pointer/information or suggestion?
§1.9/9:
"When the processing of the abstract machine is interrupted by a signal,
the values of objects with type other than volatile sig_atomic_t are
unspecified, and the value of any object not of volatile sig_atomic_t
that is modified by the handler becomes undefined."
§18.7/5:
.... "All signal handlers shall have C linkage. A POF [Plain Old Function]
that could be used as a signal handler in a conforming C program does not
produce undefined behavior when used as a signal handler in a C++ program.
The behavior of any other function used as a signal handler in a C++
program is implementation defined.(footnote 213)"
(footnote 213) "In particular, a signal handler using exception handling is
very likely to have problems"
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?