On Wed, Jul 28, 1999, Khimenko Victor wrote:

> 28-Jul-99 13:14 you wrote:
> > On Wed, Jul 28, 1999, Simon Weijgers wrote:
> 
> >> I can't seem to find a configure option to enable ipc semaphore support
> >> in modssl. Does this mean it isn't stable yet?
> 
> >>From the user manual under "SSLMutex":
> > (http://www.modssl.org/docs/2.3/ssl_reference.html)
> 
> > o sem
> 
> >   This is the most elegant but also most non-portable Mutex variant
> >   where a SysV IPC Semaphore (under Unix) and a Windows Mutex (under
> >   Win32) is used when possible. It is only available when the underlying
> >   platform supports it.
> 
> Hmm ?
> -- mod_ssl.h --
> [ skipped ]
> #ifdef USE_SYSVSEM_SERIALIZED_ACCEPT
> #define SSL_CAN_USE_SEM
> #define SSL_HAVE_IPCSEM
> #include <sys/types.h>
> #include <sys/ipc.h>
> #include <sys/sem.h>
> #endif
> [ skipped ]
> -- cut --
> Looks like it's supported when USE_SYSVSEM_SERIALIZED_ACCEPT is defined...
> The problem is... it's NEVER defined :-(( At least rgrep can find EXACTLY
> one place where USE_SYSVSEM_SERIALIZED_ACCEPT is used: this ifdef in mod_ssl.h
> Neither configure nor mod_ssl.h itself can define it so it's not clear how
> it can be used at all :-/ When -DUSE_SYSVSEM_SERIALIZED_ACCEPT was added to
> CFLAGS by hand `SSLMutex: sem' was accepted but I'm not sure if it works...
> I hope so since Linux SUPPORTS SysV IPC but still...

Ops, correct:

| :> aps grep USE_SYSVSEM_SERIALIZED_ACCEPT
| ===> include/ap_config.h
| #if !defined(USE_SYSVSEM_SERIALIZED_ACCEPT) && \
|     !defined(USE_SYSVSEM_SERIALIZED_ACCEPT)
| #ifndef USE_SYSVSEM_SERIALIZED_ACCEPT
| ===> main/http_main.c
| #elif defined (USE_SYSVSEM_SERIALIZED_ACCEPT)
| #ifdef USE_SYSVSEM_SERIALIZED_ACCEPT
|     printf(" -D USE_SYSVSEM_SERIALIZED_ACCEPT\n");
| ===> test/time-sem.c
| gcc -o time-SYSVSEM -Wall -O time-sem.c -DUSE_SYSVSEM_SERIALIZED_ACCEPT
| gcc -o time-SYSVSEM2 -Wall -O time-sem.c -DUSE_SYSVSEM_SERIALIZED_ACCEPT
| -DNO_SEM_UNDO
| #elif defined (USE_SYSVSEM_SERIALIZED_ACCEPT)

That's interesting. Inside Apache 1.3.6 we've still the check for the define,
but no place where it actually is set. I'll investigate....

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to