]> granicus.if.org Git - apache/commitdiff
reduce the warning level in the bindprocessor() call used to make sure child
authorEric Covener <covener@apache.org>
Fri, 12 Mar 2010 18:49:26 +0000 (18:49 +0000)
committerEric Covener <covener@apache.org>
Fri, 12 Mar 2010 18:49:26 +0000 (18:49 +0000)
processes aren't bound to the CPU the parent is running on.

In recent levels of AIX, the parent isn't implicitly bound to a CPU
(so the children don't inherit it), and when the AIX WPAR feature is enabled
this call can return EPERM, even though the child process is already unbound.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@922392 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c
server/mpm/prefork/prefork.c
server/mpm/worker/worker.c

index 85adf0e1321f77249573f289710d16781c273d1d..a5db0c4ad0850614c4b7ab8378c376b2e61b5890 100644 (file)
@@ -1861,7 +1861,7 @@ static int make_child(server_rec * s, int slot)
         int status = bindprocessor(BINDPROCESS, (int) getpid(),
                                    PROCESSOR_CLASS_ANY);
         if (status != OK)
-            ap_log_error(APLOG_MARK, APLOG_WARNING, errno,
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, errno,
                          ap_server_conf,
                          "processor unbind failed %d", status);
 #endif
index 336db7d77aab6b3aca5f68817695c7e2085ed064..5e1a677b45e4adb75d7ea2ac2364317d162d169d 100644 (file)
@@ -743,7 +743,7 @@ static int make_child(server_rec *s, int slot)
         int status = bindprocessor(BINDPROCESS, (int)getpid(),
                                    PROCESSOR_CLASS_ANY);
         if (status != OK) {
-            ap_log_error(APLOG_MARK, APLOG_WARNING, errno,
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, errno,
                          ap_server_conf, "processor unbind failed %d", status);
         }
 #endif
index c86d9e8f55e84e16be9dd100bbb02207a9edcacc..494fc03efc14c5ea1044cc3b1b7861948fd9faeb 100644 (file)
@@ -1360,7 +1360,7 @@ static int make_child(server_rec *s, int slot)
         int status = bindprocessor(BINDPROCESS, (int)getpid(),
                                PROCESSOR_CLASS_ANY);
         if (status != OK)
-            ap_log_error(APLOG_MARK, APLOG_WARNING, errno,
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, errno,
                          ap_server_conf,
                          "processor unbind failed %d", status);
 #endif