APR Shared Memory Usage

2011-04-12 Thread Brad . Goodman
I am a bit confused about the "correct" way to use the shared memory functions in the APR library, namely, how do I create/open a shared memory segment on the "first" process, and have subsequent processes use the same shared memory area. If I do a apr_shm_create and pass a NULL filename, APR u

Re: APR Shared Memory Usage

2011-04-12 Thread Eric Covener
> I would assume that subsequent callers could use apr_shm_attach to then > attach to an existing shared memory segment, however, it appears that this > function is not used anywhere in the apache (2.2) code base whatsoever. > (It is used in one or two places in 2.3). I assume you don't see it in

Re: APR Shared Memory Usage

2011-04-12 Thread Brad . Goodman
>> I would assume that subsequent callers could use apr_shm_attach to then >> attach to an existing shared memory segment, however, it appears that this >> function is not used anywhere in the apache (2.2) code base whatsoever. >> (It is used in one or two places in 2.3). > I assume you don't see

Re: APR Shared Memory Usage

2011-04-12 Thread Robert Schulze
Hi, Am 12.04.2011 16:45, schrieb brad.good...@schange.com: So - if I follow other examples - if I were to create the shared memory segment in a ap_hook_post_config hook function, it would be assured to be set-up before any child processes are forked, and inherited by them? see mod_shm_counter