You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2016/04/11 22:05:22 UTC

svn commit: r1738635 - /httpd/httpd/trunk/server/scoreboard.c

Author: sf
Date: Mon Apr 11 20:05:22 2016
New Revision: 1738635

URL: http://svn.apache.org/viewvc?rev=1738635&view=rev
Log:
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.

Modified:
    httpd/httpd/trunk/server/scoreboard.c

Modified: httpd/httpd/trunk/server/scoreboard.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/scoreboard.c?rev=1738635&r1=1738634&r2=1738635&view=diff
==============================================================================
--- httpd/httpd/trunk/server/scoreboard.c (original)
+++ httpd/httpd/trunk/server/scoreboard.c Mon Apr 11 20:05:22 2016
@@ -399,7 +399,7 @@ AP_DECLARE(int) ap_find_child_by_pid(apr
     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) {