• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
launchd checkin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launchd checkin


  • Subject: launchd checkin
  • From: Braden Thomas <email@hidden>
  • Date: Thu, 12 May 2005 02:31:42 -0700

Hello everyone.
I'm trying to get launchd working for a TCP daemon using the "Sockets" plist entry.

Unfortunately the launch interface isn't well undocumented (the lack of the launch(3) manpage referred to by launchd.plist(5)), but from reading launch.h for the API and launchproxy.c and portmap.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 always 13 (EACCESS). Apparently my daemon doesn't have permissions to get the response to LAUNCH_KEY_CHECKIN...? 

Anyone know why I don't have permission to receive this dictionary?
Anyone know how to get this working (or an alternative method to get active FDs from within the daemon?)
 _______________________________________________
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

  • Follow-Ups:
    • Re: launchd checkin
      • From: Dave Zarzycki <email@hidden>
    • Re: launchd checkin
      • From: Markus Hitter <email@hidden>
  • Prev by Date: Re: Problems building automount
  • Next by Date: Re: Problems building automount
  • Previous by thread: Multiple __DATA,__common segments/sections
  • Next by thread: Re: launchd checkin
  • Index(es):
    • Date
    • Thread