On Mon, Apr 29, 2002 at 11:43:26PM -0400, Cliff Woolley wrote:
> 
> I can't get shmcb to work on linux.  It fails to startup with an error
> from apr_shm_create() saying "File exists", even if I delete the file
> before starting the server.  So I was digging into the shm code to figure
> out WTF was going on, and I noticed that I actually have TWO shmem types
> listed as APR_USE_.  Is that right??  I thought it was one and only one.

That's right, one for anonymous and one for name-based; each if your
system supports at least one of those types.

> #define APR_HAVE_SHMEM_MMAP_TMP     1
> #define APR_HAVE_SHMEM_MMAP_SHM     0
> #define APR_HAVE_SHMEM_MMAP_ZERO    1
> #define APR_HAVE_SHMEM_SHMGET_ANON  1
> #define APR_HAVE_SHMEM_SHMGET       1
> #define APR_HAVE_SHMEM_MMAP_ANON    1
> #define APR_HAVE_SHMEM_BEOS         0
> 
> #define APR_USE_SHMEM_MMAP_TMP     0
> #define APR_USE_SHMEM_MMAP_SHM     0
> #define APR_USE_SHMEM_MMAP_ZERO    0
> #define APR_USE_SHMEM_SHMGET_ANON  0
> #define APR_USE_SHMEM_SHMGET       1
> #define APR_USE_SHMEM_MMAP_ANON    1
> #define APR_USE_SHMEM_BEOS         0

shmget() can be used for both name-based (file-based) or anonymous shm.
 
> Also, by the way, ssl_die() [at least with the worker MPM, haven't tried
> others] causes Apache to go into a wacky state, leaving one process lying
> around in a sleep state that never goes away.

Could that be cgid? How many threads does this process have?

-aaron

Reply via email to