]>
Commit | Line | Data |
---|---|---|
0e467b1f AM |
1 | |
2 | Use anonymous shm for ldap cache, though it's still broken. | |
3 | ||
4 | --- httpd-2.0.47/modules/experimental/util_ldap_cache.c.ldapshm | |
5 | +++ httpd-2.0.47/modules/experimental/util_ldap_cache.c | |
6 | @@ -295,14 +295,7 @@ | |
7 | #if APR_HAS_SHARED_MEMORY | |
8 | apr_status_t result; | |
9 | ||
10 | - result = apr_shm_create(&util_ldap_shm, reqsize, MODLDAP_SHMEM_CACHE, pool); | |
11 | - if (result == EEXIST) { | |
12 | - /* | |
13 | - * The cache could have already been created (i.e. we may be a child process). See | |
14 | - * if we can attach to the existing shared memory | |
15 | - */ | |
16 | - result = apr_shm_attach(&util_ldap_shm, MODLDAP_SHMEM_CACHE, pool); | |
17 | - } | |
18 | + result = apr_shm_create(&util_ldap_shm, reqsize, NULL, pool); | |
19 | if (result != APR_SUCCESS) { | |
20 | return result; | |
21 | } |