AW: Nrpe and HPUX
Gerhard Lausser
Gerhard.Lausser at consol.de
Mon Apr 10 08:49:44 CEST 2006
Hi,
> i got another one which lead to a flood of "Network server
> accept failure"
> under hp-ux 11.11:
> accept() returns an error and sets errno to EAGAIN which is
> not handled in the following lines.
> This possibly can also happen with other operating systems,
> as the socket is set to O_NONBLOCK.
...and now i know why i got this error under HP-UX and not the other
operating systems.
HP-UX defines EAGAIN and EWOULDBLOCK as different errors
#define EAGAIN 11 /* No more processes */
#define EWOULDBLOCK 246 /* Operation would block */
while the others just mix them together.
#define EAGAIN 11 /* Resource temporarily unavailable */
#define EWOULDBLOCK EAGAIN
As EWOULDBLOCK is handled, an EAGAIN is handled too, while under HP-UX it
slips through.
Greetings from Munich,
Gerhard
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
More information about the Developers
mailing list