]> granicus.if.org Git - apache/commitdiff
Add SERVER_STARTING and SERVER_DEAD child states to the Windows MPM.
authorBill Stoddard <stoddard@apache.org>
Sat, 3 Feb 2001 19:58:04 +0000 (19:58 +0000)
committerBill Stoddard <stoddard@apache.org>
Sat, 3 Feb 2001 19:58:04 +0000 (19:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87965 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index ed9a22d62e7f5bf08e9d0cf01ecf80df2db295b7..96169d0d670418f0711c17daba532e15d5e78354 100644 (file)
@@ -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);
     }