ONE_PROCESS. This allows Apache to start up without detaching from
the controlling terminal, but also not going into single process mode.
The main purpose of this patch is to make it very easy to debug the
child process startup code.
PR: 2144
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85970
13f79535-47bb-0310-9956-
ffa450edef68
Apache 2.0 STATUS:
-Last modified at [$Date: 2000/08/01 17:06:20 $]
+Last modified at [$Date: 2000/08/01 17:36:02 $]
Release:
mod_status always displays 256 possible connection slots
Status:
- * PR#2144: general
- apache always detaches for normal operation
- Status:
-
* PR#2221: documentation
Make online documentation search link back to my installation
Status:
static void beos_pre_config(ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp)
{
static int restart_num = 0;
+ int no_detach = 0;
one_process = !!getenv("ONE_PROCESS");
+ no_detach = !!getenv("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
is_graceful = 0;
- if (!one_process)
+ if (!one_process && !no_detach)
ap_detach();
server_pid = getpid();
}
static void dexter_pre_config(ap_pool_t *p, ap_pool_t *plog, ap_pool_t *ptemp)
{
static int restart_num = 0;
+ int no_detach = 0;
one_process = !!getenv("ONE_PROCESS");
+ no_detach = !!getenv("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
is_graceful = 0;
- if (!one_process) {
+ if (!one_process && !no_detach) {
ap_detach();
}
static void mpmt_beos_pre_config(ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp)
{
static int restart_num = 0;
+ int no_detach = 0;
one_process = !!getenv("ONE_PROCESS");
+ no_detach = !!getenv("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
is_graceful = 0;
- if (!one_process) {
+ if (!one_process && !no_detach) {
beosd_detach();
}
static void mpmt_pthread_pre_config(ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp)
{
static int restart_num = 0;
+ int no_detach = 0;
one_process = !!getenv("ONE_PROCESS");
+ no_detach = !!getenv("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
is_graceful = 0;
- if (!one_process) {
+ if (!one_process && !no_detach) {
ap_detach();
}
ap_my_pid = getpid();
static void prefork_pre_config(ap_pool_t *p, ap_pool_t *plog, ap_pool_t *ptemp)
{
static int restart_num = 0;
+ int no_detach = 0;
one_process = !!getenv("ONE_PROCESS");
+ no_detach = !!getenv("NO_DETACH");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
is_graceful = 0;
- if (!one_process) {
+ if (!one_process && !no_detach) {
ap_detach();
}