launch_msg("CheckIn") IPC failure: Operation not permitted
Hi everyone, I am trying to check in a daemon, with liblaunch. But I am always getting a IPC failure. For now I just tried the samplecode in sampled.c It's just creating a launch_data_t wiht launch_data_new_string(LAUNCH_KEY_CHECKIN); and tries to get a response (launch_msg(msg))) but that returns a NULL and no response. Could somebody give me a hint how to do that. Thanks Thomas
On Aug 26, 2010, at 22:25 , Thomas Bartelmess wrote:
Hi everyone,
I am trying to check in a daemon, with liblaunch. But I am always getting a IPC failure. For now I just tried the samplecode in sampled.c
It's just creating a launch_data_t wiht launch_data_new_string(LAUNCH_KEY_CHECKIN); and tries to get a response (launch_msg(msg))) but that returns a NULL and no response.
Could somebody give me a hint how to do that.
Thanks
Thomas
I know it's "old_skool" but does bootstrap_check_in work for you? Cheers, Dave
On 27 Aug 2010, at 06:25, Thomas Bartelmess wrote:
I am trying to check in a daemon, with liblaunch. But I am always getting a IPC failure. For now I just tried the samplecode in sampled.c
Have you actually tried running SampleD to see whether the code works in that context? I fully expect it will work and, if that's the case, you should look to your launchd property list file to see what's different. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
participants (3)
-
Dave MacLachlan
-
Quinn "The Eskimo!"
-
Thomas Bartelmess