Re: CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
Re: CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
- Subject: Re: CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 5 Sep 2011 11:53:16 +0100
On 4 Sep 2011, at 02:12, Jerry Krinock wrote:
> [...] also I find it very odd that Mac OS X 10.5 would be more restrictive than 10.7.
Mac OS 10.6 and later are less restrictive when it comes to bootstrap namespaces than Mac OS X 10.5.x. 10.5.x works as described in TN2083, that is, there's a bootstrap namespace per-login session (GUI and non-GUI) and then, above that, a per-user namespace, and then, above that, the global namespace. Mac OS X 10.6 flattened out the GUI and non-GUI per-login namespaces into the per-user namespace. So any process run by a particular user can always see any service registered by that user.
My guess is that that the problem you're seeing is that your agent is being launched into the wrong namespace. If you were submitting the job via "launchctl load", you could use "-S" to configure which session type, and hence which namespace, the job went into. With "launchctl submit", I have no idea where you end up.
To test this out, create a launchd property list file for your agent, set LimitLoadToSessionTypes to "Aqua", and then launch it via "launchctl load -S Aqua ...".
btw There's a launchd-dev mailing list that's more appropriate for launchd questions.
<http://lists.macosforge.org/mailman/listinfo/launchd-dev>
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
- Prev by Date:
CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
- Next by Date:
Re: CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
- Previous by thread:
CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
- Next by thread:
Re: CFMessagePortCreateRemote, launchd, Bootstrap Namespace, 10.5
- Index(es):