]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mpm_event: Retain active_daemons instead of resetting it on restart.
authorYann Ylavic <ylavic@apache.org>
Fri, 3 Dec 2021 12:59:02 +0000 (12:59 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 3 Dec 2021 12:59:02 +0000 (12:59 +0000)
commitfcae3fd2aac563c056ca3ae8869ebdcc3bca2e4b
tree669fd411213430222711a2cbeb1baf2b67d7e5ca
parentcffd667455fa6d9137aeac3ddeef4cc36c63ed2d
mpm_event: Retain active_daemons instead of resetting it on restart.

Since active_daemons is tracked by perform_idle_server_maintenance() and
decremented when a child gets quiescing or exits, clearing it on restart
is actually an off by -total_daemons (of the old gen) after the first calls
to perform_idle_server_maintenance().

Let perform_idle_server_maintenance() be the only one to update active_daemons
by putting it in the retained struct to keep track accross restarts.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895550 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/event/event.c