Re: launchctl agents unload clean up
Re: launchctl agents unload clean up
- Subject: Re: launchctl agents unload clean up
- From: Fritz Anderson <email@hidden>
- Date: Wed, 07 Dec 2011 13:21:09 -0600
On 7 Dec 2011, at 12:45 AM, Rajendran P wrote:
> My problem is that applicationWillTerminate is not being invoked when my launch agent is manually unloaded . My application is uielement with out dock entry . I am able to do a signal handling , low level unix signal handling like sigkill , sighup etc .
What makes you believe that killing a process through launchctl calls AppKit methods that propagate nicely to applicationWillTerminate:? "man 5 launchd.plist" says it sends SIGTERM, which I don't believe AppKit intercepts (maybe it would be nice if it did); and after a delay, SIGKILL, which AppKit, I'm pretty sure, does not intercept.
"Creating Launch Daemons and Agents" advises you to provide a SIGTERM handler, and doesn't mention AppKit termination at all.
— F
_______________________________________________
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