Madhu,

  Without looking at the code - that looks dead on, for the parent process 
only (probably best done in the pre_mpm hook).  We need to -attach- for 
children, rather that init (best in the child_init hook.)


From: "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 4:17 PM


> I'm trying to understand the use of shm/rmm and I was wondering if
> it makes sense to have something like this in mod_auth_digest.c.
> 
> Thanks
> -Madhu
> 
> Index: mod_auth_digest.c
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/modules/aaa/mod_auth_digest.c,v
> retrieving revision 1.58
> diff -u -r1.58 mod_auth_digest.c
> --- mod_auth_digest.c   10 Jan 2002 02:58:10 -0000      1.58
> +++ mod_auth_digest.c   21 Jan 2002 22:14:29 -0000
> @@ -311,6 +311,13 @@
>          return;
>      }
>  
> +    sts = apr_rmm_init(&client_rmm, NULL, client_shm, shmem_size, ctx)
> +    if (sts != APR_SUCCESS) {
> +        log_error_and_cleanup("failed to initialize rmm", sts, s);
> +        return;
> +    }
> +
> +
>      client_list = apr_rmm_malloc(client_rmm, sizeof(*client_list) +
>  
> sizeof(client_entry*)*num_buckets);
>      if (!client_list) {
> 

Reply via email to