From: Bill Stoddard Date: Wed, 17 Oct 2001 13:57:49 +0000 (+0000) Subject: Win32: Suppress spurious emmision of the "server reached ThreadsPerChild" message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a746a404c6528520567530e519d49b93eb382cc;p=thirdparty%2Fapache%2Fhttpd.git Win32: Suppress spurious emmision of the "server reached ThreadsPerChild" message 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 --- diff --git a/src/main/http_main.c b/src/main/http_main.c index 3b63484f4ec..a58bd684950 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -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,