[lug] g++ question
Jonathan Briggs
jbriggs at esoft.com
Wed May 15 10:39:25 MDT 2002
I was thinking that it would be pretty neat if a C++ program could catch
a signal and raise an exception. I tried throwing an exception from a
signal handler, but that only resulted in a messy crash. I'm sure this
is because signal handlers use a completely different program stack
while running.
Functions such as siglongjmp can manipulate the original program stack
and go somewhere else. Does anyone know of a C++ (it can be g++ / Linux
specific) function or library that would allow raising an exception from
a signal handler?
--
Jonathan Briggs
jbriggs at esoft.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20020515/4900e03a/attachment.pgp>
More information about the LUG
mailing list