AW: [Nagios-devel] Nrpe and HPUX

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

AW: [Nagios-devel] Nrpe and HPUX

Post 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]
Locked