You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2010/06/08 21:41:01 UTC

svn commit: r952789 - /httpd/httpd/trunk/server/log.c

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);



Re: svn commit: r952789 - /httpd/httpd/trunk/server/log.c

Posted by Rainer Jung <ra...@kippdata.de>.
On 08.06.2010 21:41, sf@apache.org wrote:
> 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.

Thanks and especially for improving the header file.