Page 1 of 1

Re: [Nagios-devel] Nagios appending when told to write?

Posted: Thu Mar 01, 2007 9:41 am
by Guest
Thomas Guyot-Sionnest wrote:
> I just seen this from a strace:
>
> open("/path/to/service-perfdata.fifo",
> O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666
>
> My /path/to/service-perfdata.fifo is set to be oppened normally instead of
> O_APPEND by this directive:
>
> service_perfdata_file_mode=w
>
> Is that a bug?
>
> Thomas

Looks like the system is adding the O_APPEND flag, since Nagios just
used fopen() with "a" or "w" values. Is it working okay? AFAIK,
appending to a pipe/fifo should work just fine.


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]