MCPcopy Create free account
hub / github.com/apache/httpd / socache_child_init

Function socache_child_init

modules/cache/mod_cache_socache.c:1489–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487}
1488
1489static 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
1504static const command_rec cache_socache_cmds[] =
1505{

Callers

nothing calls this directly

Calls 1

ap_log_errorFunction · 0.50

Tested by

no test coverage detected