tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r552231 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Date Sun, 01 Jul 2007 02:28:32 GMT
Author: rjung
Date: Sat Jun 30 19:28:32 2007
New Revision: 552231

URL: http://svn.apache.org/viewvc?view=rev&rev=552231
Log:
Minimize synchronized code path.

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?view=diff&rev=552231&r1=552230&r2=552231
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sat Jun 30 19:28:32 2007
@@ -2522,17 +2522,17 @@
         if (p->jklogfp) {
             apr_status_t rv;
             apr_size_t wrote;
+#if defined(WIN32)
+            what[used++] = '\r';
+#endif
+            what[used++] = '\n';
+            wrote = used;
             rv = apr_global_mutex_lock(jk_log_lock);
             if (rv != APR_SUCCESS) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,
                              "apr_global_mutex_lock(jk_log_lock) failed");
                 /* XXX: Maybe this should be fatal? */
             }
-#if defined(WIN32)
-            what[used++] = '\r';
-#endif
-            what[used++] = '\n';
-            wrote = used;
             rv = apr_file_write(p->jklogfp, what, &wrote);
             if (rv != APR_SUCCESS) {
                 char error[256];



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message