Changes with Apache 2.0b1
+ *) Stop using environment variables to force debug mode or
+ no detach. We now use the -D command line argument to
+ specify the correct mode. -DONE_PROCESS and -DNO_DETACH.
+ [Greg Stein]
+
*) Change handlers to use hooks. [Ben Laurie]
*) Stop returning copies of filenames from both apr_file_t and
static int restart_num = 0;
int no_detach = 0;
- one_process = !!getenv("ONE_PROCESS");
- no_detach = !!getenv("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
static int restart_num = 0;
int no_detach = 0;
- one_process = !!getenv("ONE_PROCESS");
- no_detach = !!getenv("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
int no_detach = 0;
int i;
- one_process = !!getenv("ONE_PROCESS");
- no_detach = !!getenv("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
static int restart_num = 0;
int no_detach = 0;
- one_process = !!getenv("ONE_PROCESS");
- no_detach = !!getenv("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
static int restart_num = 0;
int no_detach = 0;
- one_process = !!getenv("ONE_PROCESS");
- no_detach = !!getenv("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
int no_detach = 0;
int i;
- one_process = !!getenv("ONE_PROCESS");
- no_detach = !!getenv("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
static int restart_num = 0;
int no_detach = 0;
- no_detach = !!getenv("NO_DETACH");
+ no_detach = !!ap_exists_config_define("NO_DETACH");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
#ifdef AUX3
(void) set42sig();
#endif
- one_process = !!getenv("ONE_PROCESS");
ap_hook_pre_config(prefork_pre_config, NULL, NULL, AP_HOOK_MIDDLE);
}
static void spmt_os2_pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp)
{
- one_process = !!getenv("ONE_PROCESS");
+ one_process = !!ap_exists_config_define("ONE_PROCESS");
is_graceful = 0;
ap_listen_pre_config();
GetVersionEx(&osver);
/* AP_PARENT_PID is only valid in the child */
- pid = getenv("AP_PARENT_PID");
+ pid = ap_exists_config_define("AP_PARENT_PID");
if (pid)
{
/* This is the child */
*/
apr_status_t rv;
- if (getenv("ONE_PROCESS"))
+ if (ap_exists_config_define("ONE_PROCESS"))
one_process = -1;
if (ap_exists_config_define("ONE_PROCESS"))