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 10:41:03 +0100
How is the Nagios parent process started - command line, ssh or from launchd?
ssh
"From the perspective of a user, contexts are generally unimportant as long as they do not want a program to survive past the end of their login session." ... "The second way to run a service in the startup context is to use ssh to connect to the computer. Since sshd is running in the startup context, programs started from an ssh session also register themselves in the startup context."
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.
Looks like getaddrinfo() is a standard BSD library function. Technically the child processes which break are forked, eventually past logout, rather than started directly from Terminal.app. I'm not sure whether the quote from section 1 covers this use. However, section 2 does indicate that "programs started from an ssh session also register themselves in the startup context", yet using ssh hasn't worked for either of our cases. That definitely seems worth reporting - keep me posted?
Thank you Peter
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