Re: getaddrinfo() starts failing with EAI_AGAIN (again) (Jamus Jegier)
Re: getaddrinfo() starts failing with EAI_AGAIN (again) (Jamus Jegier)
- Subject: Re: getaddrinfo() starts failing with EAI_AGAIN (again) (Jamus Jegier)
- From: Jamus Jegier <email@hidden>
- Date: Mon, 7 Jul 2008 19:32:58 -0400
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:
This email sent to email@hidden