From 7966a8fc693eaa67de33ba199f25e5d18bfb81f8 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 22 Jun 2000 00:28:33 +0000 Subject: [PATCH] Add the ap_get_max_daemons to dexter, prefork and spmt_os2 MPM's. The only one now lacking it is winnt, but that'll need someone form the winnt camp to sort out. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85652 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/dexter/dexter.c | 5 +++++ server/mpm/prefork/prefork.c | 5 +++++ server/mpm/spmt_os2/spmt_os2.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/server/mpm/dexter/dexter.c b/server/mpm/dexter/dexter.c index fae1df0366..a7b71f26da 100644 --- a/server/mpm/dexter/dexter.c +++ b/server/mpm/dexter/dexter.c @@ -177,6 +177,11 @@ API_EXPORT(const server_rec *) ap_get_server_conf(void) return (ap_server_conf); } +API_EXPORT(int) ap_get_max_daemons(void) +{ + return ap_max_daemons_limit; +} + /* a clean exit from a child with proper cleanup */ static void clean_child_exit(int code) { diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index e75a65a8ef..ea761dbdf9 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -372,6 +372,11 @@ API_EXPORT(int) ap_exists_scoreboard_image(void) return (ap_scoreboard_image ? 1 : 0); } +API_EXPORT(int) ap_get_max_daemons(void) +{ + return ap_max_daemons_limit; +} + static ap_inline void put_scoreboard_info(int child_num, short_score *new_score_rec) { diff --git a/server/mpm/spmt_os2/spmt_os2.c b/server/mpm/spmt_os2/spmt_os2.c index 79d4eef48c..c729d0e85c 100644 --- a/server/mpm/spmt_os2/spmt_os2.c +++ b/server/mpm/spmt_os2/spmt_os2.c @@ -235,6 +235,11 @@ API_EXPORT(int) ap_exists_scoreboard_image(void) return (ap_scoreboard_image ? 1 : 0); } +API_EXPORT(int) ap_get_max_daemons(void) +{ + return max_daemons_limit; +} + int ap_update_child_status(int child_num, int status, request_rec *r) { int old_status; -- 2.40.0