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)



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?

Jamus

Thank you
  Peter

BakBone Software Ltd
Registered in England and Wales, Company No. 3825597
Registered Office: 100 Longwater AvenueGreen ParkReadingRG2 6GPUnited Kingdom.

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