| 1487 | } |
| 1488 | |
| 1489 | static void socache_child_init(apr_pool_t *p, server_rec *s) |
| 1490 | { |
| 1491 | const char *lock; |
| 1492 | apr_status_t rv; |
| 1493 | if (!socache_mutex) { |
| 1494 | return; /* don't waste the overhead of creating mutex & cache */ |
| 1495 | } |
| 1496 | lock = apr_global_mutex_lockfile(socache_mutex); |
| 1497 | rv = apr_global_mutex_child_init(&socache_mutex, lock, p); |
| 1498 | if (rv != APR_SUCCESS) { |
| 1499 | ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s, APLOGNO(02394) |
| 1500 | "failed to initialise mutex in child_init"); |
| 1501 | } |
| 1502 | } |
| 1503 | |
| 1504 | static const command_rec cache_socache_cmds[] = |
| 1505 | { |
nothing calls this directly
no test coverage detected