From: Bill Stoddard Date: Sat, 3 Feb 2001 19:58:04 +0000 (+0000) Subject: Add SERVER_STARTING and SERVER_DEAD child states to the Windows MPM. X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7bd1361cc9d48188c5176a47ff8ac86470c4238;p=apache 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 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index ed9a22d62e..96169d0d67 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -1139,8 +1139,8 @@ static void worker_main(int thread_num) conn_rec *c; apr_int32_t disconnected; - (void) ap_update_child_status(0, thread_num, SERVER_READY, - (request_rec *) NULL); + ap_update_child_status(0, thread_num, SERVER_READY, + (request_rec *) NULL); /* Grab a connection off the network */ if (osver.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) { @@ -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); }