static int workers_may_exit = 0;
static int shutdown_in_progress = 0;
static unsigned int g_blocked_threads = 0;
+static int ap_max_requests_per_child=0;
static char *ap_pid_fname = NULL;
-int ap_threads_per_child = 0;
-static int max_requests_per_child = 0;
static HANDLE shutdown_event; /* used to signal the parent to shutdown */
static HANDLE restart_event; /* used to signal the parent to restart */
static HANDLE exit_event; /* used by parent to signal the child to exit */
static HANDLE maintenance_event;
-static struct fd_set listenfds;
-static SOCKET listenmaxfd = INVALID_SOCKET;
-
static char ap_coredump_dir[MAX_STRING_LEN];
static int one_process = 0;
OSVERSIONINFO osver; /* VER_PLATFORM_WIN32_NT */
-int ap_max_requests_per_child=0;
-int ap_daemons_to_start=0;
-
-
apr_lock_t *start_mutex;
-DWORD my_pid;
-DWORD parent_pid;
+static DWORD my_pid;
+static DWORD parent_pid;
+
+int ap_threads_per_child = 0;
+int ap_daemons_to_start=0;
/* ap_get_max_daemons and ap_my_generation are used by the scoreboard
* code
* but it sure would be nice if we didn't duplicate this code
* from the APR ;-)
*/
-
static const char* const lateDllName[DLL_defined] = {
"kernel32", "advapi32", "mswsock", "ws2_32" };
static HMODULE lateDllHandle[DLL_defined] = {
int rc;
int clen;
ap_listen_rec *lr;
+ struct fd_set listenfds;
+ SOCKET listenmaxfd = INVALID_SOCKET;
/* Setup the listeners
* ToDo: Use apr_poll()
ap_daemons_to_start = DEFAULT_NUM_DAEMON;
ap_threads_per_child = DEFAULT_START_THREAD;
ap_pid_fname = DEFAULT_PIDLOG;
- max_requests_per_child = DEFAULT_MAX_REQUESTS_PER_CHILD;
+ ap_max_requests_per_child = DEFAULT_MAX_REQUESTS_PER_CHILD;
apr_cpystrn(ap_coredump_dir, ap_server_root, sizeof(ap_coredump_dir));
}
return err;
}
- max_requests_per_child = atoi(arg);
+ ap_max_requests_per_child = atoi(arg);
return NULL;
}