Henning Brauer <[EMAIL PROTECTED]> writes:

> 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       
>  #define SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  
>  #elif defined(UTS21)

I would have thought you would add

  #if defined __OpenBSD__
  #define HAVE_SYSVSEM_SERIALIZED_ACCEPT
  #endif

since you have flock too.

If you want to force sysvsem be the default, add

  #define USE_SYSVSEM_SERIALIZED_ACCEPT

in the __OpenBSD__ path.

This way you allow the admin to choose flock if they really want.

-- 
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...

Reply via email to