static int ap_threads_min_free=0;
static int ap_threads_max_free=0;
static int ap_threads_limit=0;
+static int mpm_state = AP_MPMQ_STARTING;
/*
* The max child slot ever assigned, preserved across restarts. Necessary
case AP_MPMQ_MAX_DAEMONS:
*result = 1;
return APR_SUCCESS;
+ case AP_MPMQ_MPM_STATE:
+ *result = mpm_state;
+ return APR_SUCCESS;
}
return APR_ENOTIMPL;
}
#endif
show_server_data();
+ mpm_state = AP_MPMQ_RUNNING;
while (!restart_pending && !shutdown_pending) {
perform_idle_server_maintenance(pconf);
if (show_settings)
apr_thread_yield();
apr_sleep(SCOREBOARD_MAINTENANCE_INTERVAL);
}
+ mpm_state = AP_MPMQ_STOPPING;
/* Shutdown the listen sockets so that we don't get stuck in a blocking call.
int debug;
char *addrname = NULL;
+ mpm_state = AP_MPMQ_STARTING;
+
debug = ap_exists_config_define("DEBUG");
is_graceful = 0;