Afficher un message
Vieux 09/06/2008, 16h54   #1
thagor2008@googlemail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Throwing exceptions in a unix signal handler. Good idea?

Is the behaviour of throwing exceptions in a unix signal handler
defined?

eg:

void sighandler(int sig)
{
... do something
throw myobj;
}

Under gcc on linux it seems to work as I'd expect - ie the exception
handler wrapping the code running when the signal was caught catches
the exception, but no one I've asked seems sure if this is how it
should work or its just the gcc way of doing it.

Can anyone shed any light on this?

Thanks

B2003
  Réponse avec citation
 
Page generated in 0,06327 seconds with 9 queries