Use apr_shm_create in the "post_config" hook (which gets run in the parent)
and then attach to it in the "child_init" hook (which runs in the child).
See the scoreboard.c for an example.

-aaron



On Sat, Nov 22, 2003 at 02:28:03PM +0100, David Herrero wrote:
> Thanks, In which part of the source can i reserve my own shared memory
> and the child process can access to this memory?
>
>
> -----Mensaje original-----
> De: Aaron Bannert [mailto:[EMAIL PROTECTED] 
> Enviado el: s�bado, 22 de noviembre de 2003 7:41
> Para: [EMAIL PROTECTED]
> Asunto: Re: MaxClients as shared memory
> 
> 
> On Sat, Nov 22, 2003 at 01:56:11AM +0100, David Herrero wrote:
> > 
> >     Hello, i need to do the global variable as shared memory which
> can be 
> > modificated in executing time by child process. Well, i want to know 
> > what is the better way, including MaxClients in the Scoreboard or 
> > created a shared memory to this variable.
> 
> You can't do this. MaxClients actually affects the size of the
> scoreboard, so it wouldn't make sense to store it in the scoreboard.
> 
> -aaron
> 

Reply via email to