Re: Launchd and domain sockets, accept() problem (was Re: launchd APIs)
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