httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: NSPR (was Re: rewritelog inefficiency)
Date Wed, 29 Apr 1998 06:59:09 GMT

On Wed, 29 Apr 1998, Marc Slemko wrote:

> Writes to pipes are slow writes.  What (other than the reasonably low
> chance of getting a signal and the low typical blocking length)  prevents
> piped logs from screwing up by being interrupted?

They are guaranteed to be atomic if they're less than PIPE_BUF in size. 
If you write PIPE_BUF bytes you either get -1 or PIPE_BUF back.  There are
no other options.  It doesn't matter if they're slow, or whatever.  If the
reading end of the pipe reads 1 byte at a time, the writing end is blocked
for a long time.


View raw message