Nagios appending when told to write?

Ethan Galstad nagios at nagios.org
Thu Mar 1 18:41:42 CET 2007


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 <unfinished ...>
> 
> 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: nagios at nagios.org
Website: http://www.nagios.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Developers mailing list