| 1415 | } |
| 1416 | |
| 1417 | static int socache_precfg(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptmp) |
| 1418 | { |
| 1419 | apr_status_t rv = ap_mutex_register(pconf, cache_socache_id, NULL, |
| 1420 | APR_LOCK_DEFAULT, 0); |
| 1421 | if (rv != APR_SUCCESS) { |
| 1422 | ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, plog, APLOGNO(02390) |
| 1423 | "failed to register %s mutex", cache_socache_id); |
| 1424 | return 500; /* An HTTP status would be a misnomer! */ |
| 1425 | } |
| 1426 | |
| 1427 | /* Register to handle mod_status status page generation */ |
| 1428 | socache_status_register(pconf); |
| 1429 | |
| 1430 | return OK; |
| 1431 | } |
| 1432 | |
| 1433 | static int socache_post_config(apr_pool_t *pconf, apr_pool_t *plog, |
| 1434 | apr_pool_t *ptmp, server_rec *base_server) |
nothing calls this directly
no test coverage detected