Question of Curiosity
I was wondering: what would happen if you threw a C++ exception in a signal handler? Is there any defined behavior for this sort of thing (I'm fairly new to Unix coding)?
I believe this is platform dependent, but bad mojo in general. It's implementation defined according to the C++ Standard (with the footnote "In particular, a signal handler using exception handling is very likely to have problems." (pg. 347 ISO/IEC 14882:1998)). HP, in fact, has an article titled "Throwing exceptions from a signal handler--DON'T".
edit: fixed bad grammar
[Edited by - SiCrane on January 13, 2006 6:15:57 PM]
edit: fixed bad grammar
[Edited by - SiCrane on January 13, 2006 6:15:57 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement