Re: loading agent with launchd gets Bus Error
Re: loading agent with launchd gets Bus Error
- Subject: Re: loading agent with launchd gets Bus Error
- From: Rick Mann <email@hidden>
- Date: Mon, 9 Mar 2009 14:46:45 -0700
On Mar 9, 2009, at 14:37:13, Damien Sorresso wrote:
You may have a library dependency in your program that isn't being
satisfied when run outside of the Xcode/debugging environment then.
I have no dependencies at all, apart from the default set up by the
Xcode template. This is a bare-bones project to test the various
launching/quitting/log-in/log-out/crash behaviors. It links against
Cocoa.framework, AppKit, CoreData, Foundation.
"LimitLoadToSessionType" says "Don't load this job in any session
but Aqua". By default, launchctl wants to load things into the
Background session, so you specify "-S Aqua" to say, explicitly,
"Load this into the Aqua session".
I know it's confusing, and I sincerely apologize for it.
Heh, thanks. You can make it up to me by giving me a programmatic API
for launchctl (none of this fork/execv stuff).
:-)
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden