]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge from trunk:
authorJeff Trawick <trawick@apache.org>
Tue, 28 Jun 2005 10:32:25 +0000 (10:32 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 28 Jun 2005 10:32:25 +0000 (10:32 +0000)
Downgrade the log level of a worker MPM apr_proc_mutex_foo error
message when it occurs during restart (as we already do for a couple
of other calls).

Reviewed by: jorton, pquerna

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

server/mpm/worker/worker.c

index fe078ece5d840f21801fc443495511e5110254e6..8f1ba12c44d547b59063b71a240f3e02ad57a08f 100644 (file)
@@ -738,7 +738,13 @@ static void *listener_thread(apr_thread_t *thd, void * dummy)
         else {
             if ((rv = SAFE_ACCEPT(apr_proc_mutex_unlock(accept_mutex)))
                 != APR_SUCCESS) {
-                ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
+                int level = APLOG_EMERG;
+
+                if (ap_scoreboard_image->parent[process_slot].generation != 
+                    ap_scoreboard_image->global->running_generation) {
+                    level = APLOG_DEBUG; /* common to get these at restart time */
+                }
+                ap_log_error(APLOG_MARK, level, rv, ap_server_conf,
                              "apr_proc_mutex_unlock failed. Attempting to "
                              "shutdown process gracefully.");
                 signal_threads(ST_GRACEFUL);