summaryrefslogtreecommitdiffstats
path: root/server/core.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2011-04-25 23:21:22 +0200
committerJeff Trawick <trawick@apache.org>2011-04-25 23:21:22 +0200
commit462c69e0b533aa86d9a64fbbf8a0f2059520b126 (patch)
tree3da1ce7ff3322d2d8e08292764d1b07313e0d3b0 /server/core.c
parentmod_ldap: Make LDAPSharedCacheSize 0 create a non-shared-memory cache per (diff)
downloadapache2-462c69e0b533aa86d9a64fbbf8a0f2059520b126.tar.xz
apache2-462c69e0b533aa86d9a64fbbf8a0f2059520b126.zip
Add child_status hook for tracking creation/termination of MPM child
processes. Add end_generation hook for notification when the last MPM child of a generation exits. end_generation is implemented completely by core using the child_status hook run by the MPM. simple and mpmt_os2 MPMs don't currently run the child_status hook, so neither hook is invoked with those MPMs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1096609 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/core.c')
-rw-r--r--server/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/core.c b/server/core.c
index 4d4bb8ce01..83bd0954c5 100644
--- a/server/core.c
+++ b/server/core.c
@@ -4407,6 +4407,7 @@ static void register_hooks(apr_pool_t *p)
APR_OPTIONAL_HOOK(proxy, create_req, core_create_proxy_req, NULL, NULL,
APR_HOOK_MIDDLE);
ap_hook_pre_mpm(ap_create_scoreboard, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_child_status(ap_core_child_status, NULL, NULL, APR_HOOK_MIDDLE);
/* register the core's insert_filter hook and register core-provided
* filters