Re: Alternative to bootstrap_register?
Re: Alternative to bootstrap_register?
- Subject: Re: Alternative to bootstrap_register?
- From: Alastair Houghton <email@hidden>
- Date: Wed, 18 Nov 2009 16:15:33 +0000
On 18 Nov 2009, at 15:58, Jean-Daniel Dupas wrote:
> Yes, but your server has to checkin before the client can lookup, else the lookup will failed. It work great in your example but this cannot easily be done when the client process is the one that launches the server process.
> That's where bootstrap_register was really useful has using this function, a client was able to create the service and lookup without having to wait the server readiness.
Sure, though even in that case it's fairly easy to arrange for the child to indicate its readiness through some other mechanism (distributed notifications via notify(3), for instance). I'm slightly wary of the NSMachBootstrapService method because of its reliance on the bootstrap_register() deprecated API/SPI, and launchd is only easy to use that way on 10.6, right? Also, I'm not sure launchd supports Mach ports on 10.4, if that's an issue.
Anyway, I think we've probably covered every possibility here.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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