]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Win32: Suppress spurious emmision of the "server reached ThreadsPerChild" message
authorBill Stoddard <stoddard@apache.org>
Wed, 17 Oct 2001 13:57:49 +0000 (13:57 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 17 Oct 2001 13:57:49 +0000 (13:57 +0000)
across a shutdown/restart.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91522 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_main.c

index 3b63484f4ecb5afbc0db322b14bf7e83ff6b2a33..a58bd684950b0c7d0fb96767f08510cc3c326c79 100644 (file)
@@ -5607,7 +5607,12 @@ int remove_job(int csd)
     sock = job->sock;
     free(job);
 
-    active_threads++;
+    /* If sock == -1 then the thread is about to exit so 
+     * don't count it as active.
+     */
+    if (sock != -1)
+        active_threads++;
+
     if (!reported && (active_threads == ap_threads_per_child)) {
         reported = 1;
         ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, server_conf,