summaryrefslogtreecommitdiffstats
path: root/server/mpm/prefork
diff options
context:
space:
mode:
authorPaul J. Reder <rederpj@apache.org>2001-07-18 22:29:00 +0200
committerPaul J. Reder <rederpj@apache.org>2001-07-18 22:29:00 +0200
commit620a48e6099b08b7a806e0097223f06eab433ddb (patch)
treeeb468324461fdc880e26622221619695e7d4292a /server/mpm/prefork
parentBringing forward from 1.3: small changes to standardize argument types. (diff)
downloadapache2-620a48e6099b08b7a806e0097223f06eab433ddb.tar.xz
apache2-620a48e6099b08b7a806e0097223f06eab433ddb.zip
Changed AP_MPMQ_MAX_DAEMONS to refer to MaxClients and
added an AP_MPMQ_MAX_DAEMON_USED to refer to the highest daemon index actually used in the scoreboard. I also updated the pertinent calls. Paul J. Reder git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89604 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/prefork')
-rw-r--r--server/mpm/prefork/prefork.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c
index 3a9102d3df..d006ab8e10 100644
--- a/server/mpm/prefork/prefork.c
+++ b/server/mpm/prefork/prefork.c
@@ -315,7 +315,7 @@ static void accept_mutex_off(void)
AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result)
{
switch(query_code){
- case AP_MPMQ_MAX_DAEMONS:
+ case AP_MPMQ_MAX_DAEMON_USED:
*result = ap_daemons_limit;
return APR_SUCCESS;
case AP_MPMQ_IS_THREADED:
@@ -348,6 +348,9 @@ AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result)
case AP_MPMQ_MAX_REQUESTS_DEAMON:
*result = ap_max_requests_per_child;
return APR_SUCCESS;
+ case AP_MPMQ_MAX_DAEMONS:
+ *result = ap_daemons_limit;
+ return APR_SUCCESS;
}
return APR_ENOTIMPL;
}