]> granicus.if.org Git - apache/commitdiff
Fix the test of ap_mpm_query's result:
authorStefan Fritsch <sf@apache.org>
Tue, 8 Jun 2010 19:41:01 +0000 (19:41 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 8 Jun 2010 19:41:01 +0000 (19:41 +0000)
Both AP_MPMQ_STATIC and AP_MPMQ_DYNAMIC mean threaded.

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

server/log.c

index 7ae287b2d869fa4279b115694c0845d40fa4cb42..b6ce1b68026e25d01b94451442bfbda6c274adbe 100644 (file)
@@ -633,8 +633,8 @@ static void log_error_core(const char *file, int line, int module_index,
         {
             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);