From 2e239ed8e65a0a7cc5f12d64b4d21cc92ab08709 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Thu, 24 Feb 2022 11:53:53 +0000 Subject: * core/mpm: add hook 'child_stopped` that gets called when the MPM has stopped all processing in a child process. This is when all running threads shall be stopped and joined. [Stefan Eissing] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898369 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/mpm_common.c') diff --git a/server/mpm_common.c b/server/mpm_common.c index 4b8c41e67c..b2dac2fe49 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -78,7 +78,8 @@ APR_HOOK_LINK(input_pending) \ APR_HOOK_LINK(suspend_connection) \ APR_HOOK_LINK(resume_connection) \ - APR_HOOK_LINK(child_stopping) + APR_HOOK_LINK(child_stopping) \ + APR_HOOK_LINK(child_stopped) #if AP_ENABLE_EXCEPTION_HOOK APR_HOOK_STRUCT( @@ -140,6 +141,9 @@ AP_IMPLEMENT_HOOK_VOID(resume_connection, AP_IMPLEMENT_HOOK_VOID(child_stopping, (apr_pool_t *pchild, int graceful), (pchild, graceful)) +AP_IMPLEMENT_HOOK_VOID(child_stopped, + (apr_pool_t *pchild, int graceful), + (pchild, graceful)) /* hooks with no args are implemented last, after disabling APR hook probes */ #if defined(APR_HOOK_PROBES_ENABLED) -- cgit v1.2.3