get the value from the MPM and thus free the MPM to use any variable
name they like.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85655
13f79535-47bb-0310-9956-
ffa450edef68
#include <sys/socket.h>
#endif
-#if defined(DEXTER_MPM) || defined(MPMT_BEOS_MPM) || defined(MPM_BEOS)
+#if defined(DEXTER_MPM) || defined(MPMT_BEOS_MPM) || defined(BEOS_MPM)
#define CHILD_TABLE 1
#define CHILD_INFO_TABLE ap_child_table
#elif defined(MPMT_PTHREAD_MPM) || defined (PREFORK_MPM)
ap_status_t waitret;
int tries;
int not_dead_yet;
+ int max_daemons = ap_get_max_daemons();
#ifdef SCOREBOARD
ap_sync_scoreboard_image();
/* now see who is done */
not_dead_yet = 0;
- for (i = 0; i < ap_max_daemons_limit; ++i) {
+ for (i = 0; i < max_daemons; ++i) {
pid_t pid = CHILD_INFO_TABLE[i].pid;
ap_proc_t proc;