Re: disabling Apple Crash Reporter
Re: disabling Apple Crash Reporter
- Subject: Re: disabling Apple Crash Reporter
- From: Torsten Curdt <email@hidden>
- Date: Mon, 09 Mar 2015 21:56:03 +0100
This seems to work!
void exitCallback(siginfo_t *info, ucontext_t *uap, void *context)
{
exit(-1);
}
- (void) setupCrashReporting
{
PLCrashReporter *crashReporter = [PLCrashReporter sharedReporter];
...
PLCrashReporterCallbacks callbacks;
callbacks.version = 0;
callbacks.context = NULL;
callbacks.handleSignal = exitCallback;
[crashReporter setCrashCallbacks:&callbacks];
Yay!
On Mon, Mar 9, 2015 at 9:45 PM, Torsten Curdt <email@hidden> wrote:
> I guess it might be worth opening bug reports for the crash reporters to
>> use "exit" if they don't.
>>
>>
>> Or just find the exit point to PLCrashReporter’s signal handler, add an
>> “exit” there, and send a patch to the developers. I can’t imagine it’d be
>> much work.
>>
>
> Touché :)
>
> Actually it seems that PLCrashReporter already has a callback.
> I guess one could use that to then just exit. Will try!
>
> cheers,
> Torsten
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden