You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2010/02/21 07:52:14 UTC

svn commit: r912306 - /tomcat/jk/trunk/native/common/jk_util.c

Author: mturk
Date: Sun Feb 21 06:52:14 2010
New Revision: 912306

URL: http://svn.apache.org/viewvc?rev=912306&view=rev
Log:
Make log locking compile-time defined

Modified:
    tomcat/jk/trunk/native/common/jk_util.c

Modified: tomcat/jk/trunk/native/common/jk_util.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_util.c?rev=912306&r1=912305&r2=912306&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_util.c (original)
+++ tomcat/jk/trunk/native/common/jk_util.c Sun Feb 21 06:52:14 2010
@@ -542,17 +542,21 @@
         if (p->logfile) {
             what[used++] = '\n';
             what[used] = '\0';
+#if defined(JK_LOG_LOCKING)
 #if defined(WIN32) && defined(_MSC_VER)
             LockFile((HANDLE)_get_osfhandle(_fileno(p->logfile)),
                      0, 0, 1, 0);
 #endif
+#endif
             fputs(what, p->logfile);
             /* [V] Flush the dam' thing! */
             fflush(p->logfile);
+#if defined(JK_LOG_LOCKING)
 #if defined(WIN32) && defined(_MSC_VER)
             UnlockFile((HANDLE)_get_osfhandle(_fileno(p->logfile)),
                        0, 0, 1, 0);
 #endif
+#endif
         }
         return JK_TRUE;
     }



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