Re: Very early load and usage of higher level APIs
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jun 9, 2006, at 1:28 AM, Kevin Van Vechten wrote: Possible workaround: put it into /etc/mach_init.d/zzzz.my.daemon.plist -- Shaun Wexler MacFOH http://www.macfoh.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... * 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 "I refuse to answer that question on the grounds that I don't know the answer." -- Douglas Adams This email sent to site_archiver@lists.apple.com
participants (1)
-
Shaun Wexler