Go Back  Mac-Forums.com  > Software > OS X - Darwin and Development > Getting launchd working

Reply
 
LinkBack Thread Tools
Old 05-10-2005, 03:40 PM   #1 (permalink)
dr_springfield
Guest
 
Posts: n/a
Getting 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:

launch_data_alloc(LAUNCH_DATA_STRING);
launch_data_set_string(msg, LAUNCH_KEY_CHECKIN);
resp = launch_msg(msg)

launch_data_dict_lookup(resp, LAUNCH_JOBKEY_SOCKETS);
...

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?)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Harman Kardon soundsticks not working? Small giraffe Music, Audio, and Podcasting 6 04-30-2005 05:39 PM
Airport Not working or picking up signal beaumonr Airport, Networking and Wireless Technology 5 03-05-2005 12:30 AM
Explorer has stopped working Rob Chase Apple Desktops 4 08-08-2004 10:44 AM
Non working CD Drive on G3 iBook ralliart_rob Apple Notebooks 1 07-22-2004 03:23 AM
The touch pad isnt't working klumick iPod Hardware and Accessories 1 05-02-2004 11:08 PM

 
 
 
     
Home Calendar Get New
     

Copyright ©2001-2009 Mac-Forums.com. All Rights Reserved. A division of iNET Interactive.

Other iNET Interactive Sites: Web Hosting Talk | Swish Talk | Hosting Catalog.com| Dev Papers| Deleted Domains| Hot Scripts

Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.