Page 1 of 1

AW: [Nagios-devel] Nrpe and HPUX

Posted: Sun Apr 09, 2006 10:49 pm
by Guest
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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]