Re: Alternative to bootstrap_register?
Re: Alternative to bootstrap_register?
- Subject: Re: Alternative to bootstrap_register?
- From: Damien Sorresso <email@hidden>
- Date: Fri, 20 Nov 2009 10:31:07 -0800
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden