Re: Very early load and usage of higher level APIs
Re: Very early load and usage of higher level APIs
- Subject: Re: Very early load and usage of higher level APIs
- From: Shaun Wexler <email@hidden>
- Date: Fri, 9 Jun 2006 05:50:37 -0700
On Jun 9, 2006, at 1:28 AM, Kevin Van Vechten wrote:
* launchtl might be somewhat non-deterministic in how plists are
loaded. If at times your plist is loaded before the coreservicesd
or securityd plist, then the lookups for those services will fail,
which causes the API to return an error rather than block.
Maybe reverse the order of args in rc? I believe it loads them
alphabetically, and in order of argv[]. From /etc/rc:
# Load [ideally on demand] daemons
if [ "${SafeBoot}" = "-x" ]; then
launchctl load /System/Library/LaunchDaemons /etc/mach_init.d
else
launchctl load /Library/LaunchDaemons /System/Library/
LaunchDaemons /etc/mach_init.d
SystemStarter ${VerboseFlag}
fi
Possible workaround: put it into /etc/mach_init.d/zzzz.my.daemon.plist
--
Shaun Wexler
MacFOH
http://www.macfoh.com
"I refuse to answer that question on the grounds that I don't know
the answer." -- Douglas Adams
_______________________________________________
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