• 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
Re: Launchd and domain sockets, accept() problem (was Re: launchd APIs)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launchd and domain sockets, accept() problem (was Re: launchd APIs)


  • Subject: Re: Launchd and domain sockets, accept() problem (was Re: launchd APIs)
  • From: Dave Zarzycki <email@hidden>
  • Date: Tue, 25 Apr 2006 08:17:25 -0700

On Apr 24, 2006, at 1:47 PM, Kevin Brock wrote:

Is launchd handling the accepts?

Nope. Well, if you specify inetd compatibility, it may, but I hope you're not using that option.


The theory of operation with launchd is that how you demultiplex and dispatch your work is your problem. In the case of sockets, that includes calling accept(). If you want an event loop, go for it, fork () per connection? Great. A worker pool of threads? Awesome. Whatever works best for you. launchd will stay out of your way.

Also please please please don't ever assume that only one socket is in the array. I really want system administrators to feel that they can add additional socket declarations to jobs and "everything should just work (TM)." :-)

If so, how do I find out when something has been accepted? If not, do you have any idea what's going on with launchd here?

Can you please attach your launchd configuration file and if you could, a distilled version of your code that exhibits the problem?


Thanks!

davez
_______________________________________________
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 and domain sockets, accept() problem (was Re: launchd APIs)
      • From: Kevin Brock <email@hidden>
References: 
 >launchd APIs (From: Kevin Brock <email@hidden>)
 >Re: launchd APIs (From: Dave Zarzycki <email@hidden>)
 >Launchd and domain sockets, accept() problem (was Re: launchd APIs) (From: Kevin Brock <email@hidden>)

  • Prev by Date: Re: launchd APIs
  • Next by Date: dirent->d_type: DT_LNK oddness ?
  • Previous by thread: Launchd and domain sockets, accept() problem (was Re: launchd APIs)
  • Next by thread: Re: Launchd and domain sockets, accept() problem (was Re: launchd APIs)
  • Index(es):
    • Date
    • Thread