Jean-Michel Dault <[EMAIL PROTECTED]> writes:

> On Wed, 6 Sep 2000, Charles Nepote wrote:
> 
> > Either in Linux-Mandrake 7.1 and 7.2b1 there is a big problem with
> > Apache's logs files.
> > According to [CHRPM] informations (apache-1.3.12-26mdk), it seems that
> > Apache's log files are buffered now (and may be Apache in 7.1 was also
> > ?).
> > 
> > 1. -- This is not working well.
> > Here is an exerpt of the log file, look at the date/time :
> > 172.18.254.159 - - [29/Aug/2000:15:21:07 +0200] 
> > 172.18.254.159 - - [29/Aug/2000:15:21:07 +0200] 
> > 172.18.254.138 - - [28/Aug/2000:17:20:23 +0200] 
> > 172.20.18.198 - - [28/Aug/2000:17:26:04 +0200] 
> > 172.18.254.194 - - [28/Aug/2000:18:28:57 +0200]
> > 172.18.254.142 - - [28/Aug/2000:18:51:19 +0200]
> > 172.20.18.198 - - [28/Aug/2000:18:52:11 +0200] 
> > 172.18.254.145 - - [29/Aug/2000:14:24:48 +0200]
> > 172.20.18.198 - - [29/Aug/2000:14:51:09 +0200]
> 
> Yes, this is a known behavior of the buffered logs. I'm not sure why, but
> it seems each process has its own buffer?

If you try to write one global buffer from different process,
the buffer will be duplicated within the process : 
that is copy on write behavior.

If you want to really share a buffer between process, you need to use IPC.

-- 
                -- Yoann http://www.mandrakesoft.com/~yoann/
   An engineer from NVidia, while asking him to release cards specs said :
        "Actually, we do write our drivers without documentation."

Reply via email to