]> granicus.if.org Git - apache/commitdiff
add in child_init which is needed
authorJim Jagielski <jim@apache.org>
Thu, 16 May 2013 04:28:14 +0000 (04:28 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 16 May 2013 04:28:14 +0000 (04:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1483190 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 1c5b2badacea3182ac6f48bdb0118926cb74516e..e45f66cece4fa8213d4b5d126a3df91466f562fa 100644 (file)
@@ -2514,6 +2514,15 @@ static void child_init(apr_pool_t *p, server_rec *s)
 {
     proxy_worker *reverse = NULL;
 
+    apr_status_t rv = apr_global_mutex_child_init(&proxy_mutex,
+                                      apr_global_mutex_lockfile(proxy_mutex),
+                                      p);
+    if (rv != APR_SUCCESS) {
+        ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s, APLOGNO()
+                     "could not init proxy_mutex in child");
+        exit(1); /* Ugly, but what else? */
+    }
+
     /* TODO */
     while (s) {
         void *sconf = s->module_config;