Re: XPC, launchd daemon (and NSXPCConnection)
Re: XPC, launchd daemon (and NSXPCConnection)
- Subject: Re: XPC, launchd daemon (and NSXPCConnection)
- From: Stephane Sudre <email@hidden>
- Date: Sat, 13 Aug 2016 00:25:43 +0200
Got it to work.
The difficulty lied in the LaunchdDaemon .plist file which does not
look like the one in the EvenBetterAuthorizationSample sample code.
On Fri, Aug 12, 2016 at 5:36 AM, Jeremy Huddleston Sequoia
<email@hidden> wrote:
>
>> On Aug 11, 2016, at 14:31, Stephane Sudre <email@hidden> wrote:
>>
>> Is there somewhere a sample project that shows how to start a launchd
>> daemon using XPC through a Mach Service?
>
> To start the daemon, just send a message. launchd will start the process when there is a message in the port. There is no different compared to any other MachIPC in this regard.
>
>> The 2012 WWDC session on XPC does not seem to imply that some voodoo
>> code (*) must me implemented to install a listener for a mach service
>> name and receive the messages.
>>
>>
>> * like all the launch_data_ stuff you need to do when using a MachPort.
>> _______________________________________________
>> 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
>
--
Packaging Resources - http://s.sudre.free.fr/Packaging.html
_______________________________________________
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