]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1898453 from trunk
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 13 May 2022 17:05:31 +0000 (17:05 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 13 May 2022 17:05:31 +0000 (17:05 +0000)
   * mod_lua: ap_lua_init_mutex() is not about thread 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.

Submitted by: jailletc36
Reviewed by: jaillect36, ylavic, rpluem
Backported by: jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1900863 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.c

index 665e2cddc7b8af818cb0f5dedc05436d25495c23..303890ef498485552316341b2e279db0f3bd8abf 100644 (file)
@@ -2176,9 +2176,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);