diff options
author | Stefan Eissing <icing@apache.org> | 2022-02-24 12:53:53 +0100 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-02-24 12:53:53 +0100 |
commit | 2e239ed8e65a0a7cc5f12d64b4d21cc92ab08709 (patch) | |
tree | edbc212c0d79ec080b86549310bd4cca55ef4a5b /server/mpm_common.c | |
parent | return early if X509_STORE_CTX_init fails (diff) | |
download | apache2-2e239ed8e65a0a7cc5f12d64b4d21cc92ab08709.tar.xz apache2-2e239ed8e65a0a7cc5f12d64b4d21cc92ab08709.zip |
* 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
Diffstat (limited to 'server/mpm_common.c')
-rw-r--r-- | server/mpm_common.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) |