From: Christophe Jaillet Date: Sun, 27 Feb 2022 09:12:13 +0000 (+0000) Subject: ap_lua_init_mutex() is not about thead only . It also calls X-Git-Tag: 2.5.0-alpha2-ci-test-only~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e61f23ee400b77dddedbd6b9e5079c143d8de30f;p=thirdparty%2Fapache%2Fhttpd.git ap_lua_init_mutex() is not about thead only . It also calls apr_global_mutex_child_init(). So I see no good reason to skip this hook if !APR_HAS_THREADS. Some #if APR_HAS_THREADS are also already in place in ap_lua_init_mutex() anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898453 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 356cbfe0dc0..82523dffbc7 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -2175,9 +2175,8 @@ static void lua_register_hooks(apr_pool_t *p) /* Hook this right before FallbackResource kicks in */ ap_hook_fixups(lua_map_handler_fixups, NULL, NULL, AP_LUA_HOOK_LAST-2); -#if APR_HAS_THREADS ap_hook_child_init(ap_lua_init_mutex, NULL, NULL, APR_HOOK_MIDDLE); -#endif + /* providers */ lua_authz_providers = apr_hash_make(p);