Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.