Commit 7e4bc5f0 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Add SERVER_STARTING and SERVER_DEAD child states to the Windows MPM.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87965 13f79535-47bb-0310-9956-ffa450edef68
parent ce45263b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1139,7 +1139,7 @@ static void worker_main(int thread_num)
        conn_rec *c;
        apr_int32_t disconnected;

        (void) ap_update_child_status(0, thread_num, SERVER_READY, 
        ap_update_child_status(0, thread_num, SERVER_READY, 
                               (request_rec *) NULL);

        /* Grab a connection off the network */
@@ -1178,6 +1178,8 @@ static void worker_main(int thread_num)
        }
    }

    ap_update_child_status(0, thread_num, SERVER_DEAD, (request_rec *) NULL);

    ap_log_error(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, server_conf,
                 "Child %d: Thread exiting.", my_pid);
#if 0
@@ -1297,6 +1299,7 @@ static void child_main()
                 "Child %d: Starting %d worker threads.", my_pid, nthreads);
    child_handles = (thread) alloca(nthreads * sizeof(int));
    for (i = 0; i < nthreads; i++) {
        ap_update_child_status(0, i, SERVER_STARTING, (request_rec *) NULL);
        child_handles[i] = (thread) _beginthreadex(NULL, 0, (LPTHREAD_START_ROUTINE) worker_main,
                                                   (void *) i, 0, &tid);
    }