[syslog-ng] syslog-ng on hp-ux

Klaus Groenhoej kgr@kmd.dk
Mon, 28 Feb 2000 14:50:59 +0100


Hi,

snip from: "man 2 read":

      When attempting to read from an empty pipe or FIFO:

           +  If no process has the pipe open for writing, read() will
              return 0 to indicate end-of-file.

           +  If some process has the pipe open for writing and O_NONBLOCK
              is set, read() will return -1 and set errnoto EAGAIN.

           +  If some process has the pipe open for writing and O_NONBLOCK
              is clear, read() will block until some data is written or the
              pipe is closed by all processes that had the pipe open for
              writing.

syslog-ng will open /dev/log  - try to read from /dev/log and will recive end-of-file.
syslog-ng closes /dev/log and open the file again - try to read from /dev/log and
recieve end-of-file - etc. etc.

-Klaus

-- 
Klaus Groenhoej
Kommunedata A/S
Hadsundvej 184
9100 Aalborg
Denmark
Phone:  (+45)44601000 #2677
Direct: (+45)44602677
Fax:    (+45)44602990
----- Original Message ----- 
From: "Balazs Scheidler" <bazsi@balabit.hu>
To: <syslog-ng@venus.terrasoft.hu>
Sent: Monday, February 28, 2000 2:15 PM
Subject: Re: [syslog-ng] syslog-ng on hp-ux


> > Syslog-ng doesn't work with HP/UX named pipe /dev/log.
> > 
> > syslog-ng must open /dev/log with O_RDRW instead of O_READONLY.
> 
> why?
> 
> -- 
> Bazsi
> PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
>      url: http://www.balabit.hu/pgpkey.txt
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> http://lists.balabit.hu/mailman/listinfo/syslog-ng