]> git.pld-linux.org Git - packages/apache.git/blob - httpd-2.0.46-shmcb.patch
- added HTTPD_CONF variable
[packages/apache.git] / httpd-2.0.46-shmcb.patch
1
2 Use anonymous rather than name-based shm for shmcb.
3 Name-based shm is overeager in use of _EXCL so causes
4 startup failures after unclean shutdown; #80520.
5
6 --- httpd-2.0.46/modules/ssl/ssl_scache_shmcb.c.shmcb
7 +++ httpd-2.0.46/modules/ssl/ssl_scache_shmcb.c
8 @@ -364,18 +364,9 @@
9      apr_size_t shm_segsize;
10      apr_status_t rv;
11  
12 -    /*
13 -     * Create shared memory segment
14 -     */
15 -    if (mc->szSessionCacheDataFile == NULL) {
16 -        ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
17 -                     "SSLSessionCache required");
18 -        ssl_die();
19 -    }
20 -
21      if ((rv = apr_shm_create(&(mc->pSessionCacheDataMM), 
22                               mc->nSessionCacheDataSize, 
23 -                             mc->szSessionCacheDataFile,
24 +                             NULL,
25                               mc->pPool)) != APR_SUCCESS) {
26          char buf[100];
27          ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
This page took 0.024686 seconds and 3 git commands to generate.