Re: Catching system signals and exception handling
Re: Catching system signals and exception handling
- Subject: Re: Catching system signals and exception handling
- From: j o a r <email@hidden>
- Date: Thu, 21 Jul 2005 17:16:22 +0200
On 21 jul 2005, at 17.03, Aaron Burghardt wrote:
I'm trying to learn how handle system signals so I can catch SIGBUS
& SIGSEGV signals, report them, and possibly recover from them.
I've tried using the NSExceptionHandler from the ExceptionHandling
framework, but I can't get it to catch signals and convert to
exceptions, so I've moved on to installing my own signal handler.
I would like to have my signal handler create and raise an
NSException. My test app will do it once, but subsequent signals
get caught in an infinite loop. Is there a way to do this? Do I
need to use setjmp/longjmp?
You're not allowed to use Cocoa from a signal handler. You're
basically not allowed to do anything in a signal handler. Read the
documentation, and the discussions on this topic that you can find in
the list archives.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden