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: Peter Oberauer <email@hidden>
- Date: Tue, 8 Jul 2008 00:19:08 +0100
I installed Nagios, which frequently forks processes to verify the status of network hosts. After about 8 hours, all child processes start failing with EAI_AGAIN.
Under the Nagios parent process, dig works, but ping doesn't. Both DNS and Bonjour lookups begin to fail.
Hi Jamus
How is the Nagios parent process started - command line, ssh or from launchd?
The key words you are looking for are: Mach bootstrap context
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."
-- Peter Oberauer
BakBone Software Ltd Registered in England and Wales, Company No. 3825597 Registered Office: 100 Longwater Avenue, Green Park, Reading, RG2 6GP, United Kingdom
|
_______________________________________________
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