On Wed, Jul 17, 2002 at 09:18:34AM -0400, Jim Jagielski wrote:
> Henning Brauer wrote:
> > 
> > sorry if this appears twice, first one seems not to have made it.
> > 
> > we have sysvsem on OpenBSD and applied the following patch to ap_config.h 
> > in our tree - would be nice to have it in the apache.org tree as well. this
> > is for apache 1.3.
> > 
> > Index: src/include/ap_config.h
> > ===================================================================
> > RCS file: /cvs/src/usr.sbin/httpd/src/include/ap_config.h,v
> > retrieving revision 1.10
> > diff -u -r1.10 ap_config.h
> > --- src/include/ap_config.h 29 Mar 2002 02:08:05 -0000      1.10
> > +++ src/include/ap_config.h 9 Jul 2002 06:42:15 -0000
> > @@ -687,7 +687,11 @@
> >  #define HAVE_MMAP 1
> >  #define USE_MMAP_SCOREBOARD
> >  #define USE_MMAP_FILES
> > +#if defined __OpenBSD__
> > +#define HAVE_SYSVSEM_SERIALIZED_ACCEPT
> > +#else
> >  #define HAVE_FLOCK_SERIALIZED_ACCEPT
> > +#endif     
> > 
> 
> Why the "#else" part? Does OpenBSD lack flock() or is it because of
> the new 'chroot' that your version does, but the .org doesn't. If the
> latter, I'd prefer allowing both with the official ASF code.

oversight on our part.
I just commited a fix.

flock works with out chroot, but we don't want www-writeable files inside
the chroot, so we default to sysvsem.

Reply via email to