From: Stefan Fritsch Date: Mon, 11 Apr 2016 20:05:22 +0000 (+0000) Subject: Make ap_find_child_by_pid() look at all slots that have ever been used. X-Git-Tag: 2.5.0-alpha~1756 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=179434596635cf7d0f5b68bd9fb1d0936b2e7fb3;p=apache Make ap_find_child_by_pid() look at all slots that have ever been used. This is preparation to allow to use more scoreboard slots in mpm event. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1738635 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/scoreboard.c b/server/scoreboard.c index 23e572b47b..c6e8a4e00c 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -399,7 +399,7 @@ AP_DECLARE(int) ap_find_child_by_pid(apr_proc_t *pid) int i; int max_daemons_limit = 0; - ap_mpm_query(AP_MPMQ_MAX_DAEMONS, &max_daemons_limit); + ap_mpm_query(AP_MPMQ_MAX_DAEMON_USED, &max_daemons_limit); for (i = 0; i < max_daemons_limit; ++i) { if (ap_scoreboard_image->parent[i].pid == pid->pid) {