summaryrefslogtreecommitdiffstats
path: root/server/mpm_common.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-03-02 23:46:33 +0100
committerRyan Bloom <rbb@apache.org>2001-03-02 23:46:33 +0100
commitd2d23882afe4cf8b26f97fa268d529bef69da2bc (patch)
treebdf01b3f5aef5e22475ebcdf01af36304e232f5e /server/mpm_common.c
parentIn ap_method_in_list(), fix a typo which inadvertently cleared (diff)
downloadapache2-d2d23882afe4cf8b26f97fa268d529bef69da2bc.tar.xz
apache2-d2d23882afe4cf8b26f97fa268d529bef69da2bc.zip
Allow modules to query the MPM about it's execution profile. This
query API can and should be extended in the future, but for now, max_daemons, and threading or forking is a very good start. Non-Unix MPM's do have the MPM query function, although there is no garauntee that the information is perfect, please check. Submitted by: Jon Travis <jtravis@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88437 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm_common.c')
-rw-r--r--server/mpm_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/mpm_common.c b/server/mpm_common.c
index 6ac6868a9e..cadc7f076c 100644
--- a/server/mpm_common.c
+++ b/server/mpm_common.c
@@ -94,8 +94,9 @@ void ap_reclaim_child_processes(int terminate)
apr_status_t waitret;
int tries;
int not_dead_yet;
- int max_daemons = ap_get_max_daemons();
+ int max_daemons;
+ ap_mpm_query(AP_MPMQ_MAX_DAEMONS, &max_daemons);
MPM_SYNC_CHILD_TABLE();
for (tries = terminate ? 4 : 1; tries <= 9; ++tries) {