You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ti...@apache.org on 2012/07/27 04:16:57 UTC

svn commit: r1366267 - in /tomcat/jk/trunk: native/configure.in xdocs/miscellaneous/changelog.xml

Author: timw
Date: Fri Jul 27 02:16:57 2012
New Revision: 1366267

URL: http://svn.apache.org/viewvc?rev=1366267&view=rev
Log:
Add --disable-sock-cloexec flag to configure that supresses use of SOCK_CLOEXEC so built modules will work on Linux kernels < 2.6.27.

Modified:
    tomcat/jk/trunk/native/configure.in
    tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/jk/trunk/native/configure.in
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/configure.in?rev=1366267&r1=1366266&r2=1366267&view=diff
==============================================================================
--- tomcat/jk/trunk/native/configure.in (original)
+++ tomcat/jk/trunk/native/configure.in Fri Jul 27 02:16:57 2012
@@ -366,8 +366,15 @@ int main(void)
 )
 ])dnl
 
-dnl check for SOCK_CLOEXEC
-JK_CHECK_SOCKOPT(SOCK_CLOEXEC)
+AC_ARG_ENABLE(sock-cloexec,
+[AS_HELP_STRING([--disable-sock-cloexec],[Disable use of SOCK_CLOEXEC.
+This ensures the built module can be used on systems that do not support SOCK_CLOEXEC])],
+[
+],
+[
+	dnl check for SOCK_CLOEXEC
+	JK_CHECK_SOCKOPT(SOCK_CLOEXEC)
+])
 
 dnl check for poll.h header
 AC_CHECK_HEADERS(poll.h)

Modified: tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml?rev=1366267&r1=1366266&r2=1366267&view=diff
==============================================================================
--- tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml Fri Jul 27 02:16:57 2012
@@ -47,6 +47,11 @@
       <fix>
         Fix status worker not updating parameters for all members. (mturk)
       </fix>
+      <add>
+        Add --disable-sock-cloexec to configure to disable use of SOCK_CLOEXEC
+        (using FD_CLOEXEC + fnctl instead) so built modules will work with
+        Linux kernels prior to 2.6.27. (timw)
+      </add>
     </changelog>
   </subsection>
 </section>



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