diff options
author | Stefan Eissing <icing@apache.org> | 2021-07-31 13:36:19 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-07-31 13:36:19 +0000 |
commit | 19360d53dfb69186f17bb59fc9453eb3451d3424 (patch) | |
tree | c4bdc83e25567dbcef74c37b7a6813d0e5a1efdb /include/mpm_common.h | |
parent | 7c939cdcce763c8e636d1d276ad2bea10c451fd3 (diff) | |
download | httpd-19360d53dfb69186f17bb59fc9453eb3451d3424.tar.gz |
* core/mpm: add hook 'child_stopping` that gets called when the MPM is
stopping a child process. The additional `graceful` parameter allows
registered hooks to free resources early during a graceful shutdown.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1891919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/mpm_common.h')
-rw-r--r-- | include/mpm_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mpm_common.h b/include/mpm_common.h index a8e7b03749..007a24a498 100644 --- a/include/mpm_common.h +++ b/include/mpm_common.h @@ -511,6 +511,15 @@ AP_DECLARE_HOOK(void, suspend_connection, AP_DECLARE_HOOK(void, resume_connection, (conn_rec *c, request_rec *r)) +/** + * Notification that the child is stopping. If graceful, ongoing + * requests will be served. + * @param pchild The child pool + * @param graceful != 0 iff this is a graceful shutdown. + */ +AP_DECLARE_HOOK(void, child_stopping, + (apr_pool_t *pchild, int graceful)) + /* mutex type string for accept mutex, if any; MPMs should use the * same mutex type for ease of configuration */ |