From ec56aba06fbeabc8349dd81483f66fbb66aeeea2 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 22 Feb 2010 17:16:29 +0000 Subject: Fix startup segfault when the Mutex directive is used but no loaded modules use httpd mutexes. Add an init call from core's pre-config hook to ensure init is performed before the config is parsed. PR: 48787 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@912666 13f79535-47bb-0310-9956-ffa450edef68 --- include/util_mutex.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/util_mutex.h') diff --git a/include/util_mutex.h b/include/util_mutex.h index e9dde52705..935e94e998 100644 --- a/include/util_mutex.h +++ b/include/util_mutex.h @@ -103,6 +103,9 @@ AP_DECLARE(apr_status_t) ap_parse_mutex(const char *arg, apr_pool_t *pool, AP_DECLARE_NONSTD(const char *) ap_set_mutex(cmd_parms *cmd, void *dummy, const char *arg); +/* private function to initialize Mutex infrastructure */ +AP_DECLARE_NONSTD(void) ap_mutex_init(apr_pool_t *p); + /** * option flags for ap_mutex_register(), ap_global_mutex_create(), and * ap_proc_mutex_create() -- cgit v1.2.3