Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Registering function to call on host app exit?



On Thu, 29 Jul 2004 15:34:59 -0700, "James W. Walker" <email@hidden>
wrote:
> Jim Wintermyre <email@hidden> wrote:
>>The problem is that on OS X, if the application crashes/is force
>>quit/otherwise terminates abnormally, the CFM term routine is not
>>called, which means things don't get cleaned up properly. On OS 9,
>>this is not the case; the term routine is called regardless of how
>>the application is quit. Apparently this is a bug in the OS X CFM
>>implementation, as I asked George Warner about it, and he thought it
>>had been fixed but apparently was not (and at this point I doubt
>>anything will be changed for CFM on OS X).
>
> I filed a bug on that long ago (rdar://2826192) at it was closed as
> "behaves correctly".

I looked up your bug; The comment from engineering was:

[BEGIN]
There is no signal handling for CFM or mach-o apps. While signal handling
may be done by traditional BSD libraries, we don't handle signals on behalf
of applications in CFM or CarbonCore for that matter.

This behaves as designed. The application workaround is to install a signal
handler for the desired signals based on signal(3).
[END]
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.