httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r952789 - /httpd/httpd/trunk/server/log.c
Date Tue, 08 Jun 2010 19:41:01 GMT
Author: sf
Date: Tue Jun  8 19:41:01 2010
New Revision: 952789

URL: http://svn.apache.org/viewvc?rev=952789&view=rev
Log:
Fix the test of ap_mpm_query's result:
Both AP_MPMQ_STATIC and AP_MPMQ_DYNAMIC mean threaded.

Modified:
    httpd/httpd/trunk/server/log.c

Modified: httpd/httpd/trunk/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?rev=952789&r1=952788&r2=952789&view=diff
==============================================================================
--- httpd/httpd/trunk/server/log.c (original)
+++ httpd/httpd/trunk/server/log.c Tue Jun  8 19:41:01 2010
@@ -633,8 +633,8 @@ static void log_error_core(const char *f
         {
             int result;
 
-            if (ap_mpm_query(AP_MPMQ_IS_THREADED, &result) == 0
-                && result == AP_MPMQ_STATIC) {
+            if (ap_mpm_query(AP_MPMQ_IS_THREADED, &result) == APR_SUCCESS
+                && result != AP_MPMQ_NOT_SUPPORTED) {
                 apr_os_thread_t tid = apr_os_thread_current();
                 len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
                                     ":tid %pT", &tid);



Mime
View raw message