Thread: Getting launchd working
05-10-2005, 03:40 PM #1dr_springfieldGuestGetting launchd working
Has anyone actually gotten launchd working for running their own TCP/IP daemon?
Unfortunately the launch interface is undocumented (note the suspicious lack of the launch(3) manpage), but from reading launch.h for the API and launchproxy.c for an example, I was able to determine that the correct course of events goes as follows:
resp = launch_msg(msg)
Unfortunately I can't get this working -- response launch_data_t ("resp") is of type LAUNCH_DATA_ERRNO. The error is 13 (EACCESS). Apparently my daemon doesn't have permissions to get the response to LAUNCH_KEY_CHECKIN...?
Anyone know how to get this working (or an alternative method to get active FDs from within the daemon?)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By vasu in forum OS X - Operating SystemReplies: 2Last Post: 12-13-2011, 11:32 AM
By ajeprog in forum OS X - Operating SystemReplies: 1Last Post: 12-14-2009, 06:49 PM
By DeviousDan in forum OS X - Operating SystemReplies: 0Last Post: 02-09-2009, 10:47 PM
By Pankaj in forum OS X - Development and DarwinReplies: 0Last Post: 02-19-2008, 03:05 AM