]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_cgid: Refuse to work on Solaris 10 due to OS bugs.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 30 Aug 2005 21:21:18 +0000 (21:21 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 30 Aug 2005 21:21:18 +0000 (21:21 +0000)
PR: 34264

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

CHANGES
modules/generators/config5.m4

diff --git a/CHANGES b/CHANGES
index f46c4ac80c7eb7f74d25a3a24063f4e507cd9567..472853c75112d01b22d5529be4d96fbd757d6d74 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.0
   [Remove entries to the current 2.0 and 2.2 section below, when backported]
 
+  *) mod_cgid: Refuse to work on Solaris 10 due to OS bugs.  PR 34264.
+     [Justin Erenkrantz]
+
   *) SECURITY: CAN-2005-2700 (cve.mitre.org)
      mod_ssl: Fix a security issue where "SSLVerifyClient" was not
      enforced in per-location context if "SSLVerifyClient optional"
index d4f6282194ff8f9e076dd913aaa72a6879e4e2bd..4a3c6253ce58f6d1872c84b312c400ca3924c5e6 100644 (file)
@@ -14,7 +14,26 @@ APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [
 if ap_mpm_is_threaded; then
 # if we are using a threaded MPM, we will get better performance with
 # mod_cgid, so make it the default.
-    APACHE_MODULE(cgid, CGI scripts, , , yes)
+    APACHE_MODULE(cgid, CGI scripts, , , yes, [
+    case $host in
+      *-solaris2*)
+        case `uname -r` in
+          5.10)
+          dnl Eventually, 120664 will be released for Solaris 10.
+          dnl At that point, we can do a showrev -p search for that patch.
+          dnl Solaris 11 (next release) as of snv_19 doesn't have this problem.
+          dnl It may be possible to use /kernel/drv/tl from later releases.
+          AC_MSG_ERROR([mod_cgid is non-functional on Solaris 10.
+This means that threaded MPMs (such as worker MPM) with CGIs will not work.
+This problem is due to an OS bug with AF_UNIX sockets.
+Patches are forthcoming from Sun.
+Please run configure with --disable-cgid or switch to the prefork MPM.
+For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>])
+          ;;
+        esac
+        ;;
+    esac
+  ])
     APACHE_MODULE(cgi, CGI scripts, , , no)
 else
 # if we are using a non-threaded MPM, it makes little sense to use