httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: PATCH: conf.h / USE_FLOCK or USE_FCNTL (fwd)
Date Sun, 02 Feb 1997 22:05:36 GMT
Marc Slemko wrote:
> 
> On Sun, 2 Feb 1997, Brian Behlendorf wrote:
> 
> > 
> > 
> > ---------- Forwarded message ----------
> > Date: Sat, 1 Feb 1997 13:19:56 +0100
> > From: System Owner <root@en3.engelschall.de>
> > To: Apache Developer ML <new-httpd@hyperreal.com>
> > Subject: PATCH: conf.h / USE_FLOCK or USE_FCNTL
> > 
> > 
> > Below is a patch for conf.h to define USE_FLOCK or USE_FCNTL in a more
> > pessimistic way than the current mod_rewrite.h (3.0.0) does. It is highly
> > recommomened that we include such defines, because currently mod_rewrite
> > privately guesses the choice of flock/fcntl from the
> > USE_FCNTL_SERIALIZED_ACCEPT define. 
> 
> +1 on the concept.  I wonder if we should get rid of
> USE_*_SERIALIZED_ACCEPT and replace it with a combination of
> USE_SERIALIZED_ACCEPT and USE_{FCNTL|FLOCK}.  Comments?  If we are
> generalizing this (and I think that is a good idea; can think of lots 
> of ideas for cool modules that need to lock files) may as well do it
> fully.
> 

Except that some OSs may have both and you would want to use,
for example, FCNTL locking for some things, but not for serializing
the accept loop (since interactions with NFS may make fcntl too expensive
and slow but flock just fine).

-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message