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: getaddrinfo() starts failing with EAI_AGAIN (again) (Jamus Jegier)




On Jul 7, 2008, at 7:19 PM, Peter Oberauer wrote:

Hi Jamus

How is the Nagios parent process started - command line, ssh or from launchd?

ssh

The key words you are looking for are: Mach bootstrap context

Would never have guessed those keywords. :)


The solution for my buildbot/svn/getaddrinfo issue that you refer back to was to use launchd to start the parent:


"To avoid wasting memory, currently the login context is destroyed when the user logs out (or shortly thereafter). This behavior may change in the future, however. In the current implementation, programs started by the user will no longer be able to look up Mach ports after logout. If a program does not need to do any port lookup, it will not be affected. Other programs will terminate, hang, or behave erratically."

Further down, it says:

In Mac OS X 10.2, a great deal of effort has gone into making sure that programs that use only standard BSD services and functions do not use Mach lookups in a way that would fail if started from a user context. If you find an application that breaks when started from a Terminal.app window, please file a bug report.

Did you ever file a bug report?  If not, I will.  But using launchd seems like a fair workaround for now.

Jamus
 _______________________________________________
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: 
 >Re: getaddrinfo() starts failing with EAI_AGAIN (again) (Jamus Jegier) (From: Peter Oberauer <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.