site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Nov 20, 2009, at 7:42 AM, Uli Kusterer wrote:
On 18.11.2009, at 16:35, Alastair Houghton wrote:
Another alternative is just to use bootstrap_checkin() from the child process, and then you can use the port that that API returns. The parent would then use bootstrap_look_up().
(That's what my sample program does.)
bootstrap_checkin() requires root privileges for the calling application (at least on 10.5 and earlier), which seems like overkill in our case. Apparently, your code uncovered that it works on 10.6 without root permissions, but sadly that won't help in our current situation :-(
bootstrap_check_in() doesn't require root privileges. It only requires that you be advertising the named service in your launchd.plist. -- Damien Sorresso BSD Engineering Apple Inc. _______________________________________________ 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... This email sent to site_archiver@lists.apple.com