]> granicus.if.org Git - apache/commitdiff
If the server is configured with an accept mutex type that isn't comaptible
authorRyan Bloom <rbb@apache.org>
Fri, 11 Oct 2002 15:41:52 +0000 (15:41 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 11 Oct 2002 15:41:52 +0000 (15:41 +0000)
with perchild, then force it to be FCNTL.

PR: 13311

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

server/mpm/experimental/perchild/perchild.c

index 2179b4dde7a36e63b9619c25338ced53bbec4d45..d9f26230ce16f375497de70e0cbd9edd4464f4df 100644 (file)
@@ -1328,6 +1328,14 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
 
     ap_server_conf = s;
 
+    if ((ap_accept_lock_mech == APR_LOCK_SYSVSEM) || 
+        (ap_accept_lock_mech == APR_LOCK_POSIXSEM)) {
+        ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,
+                     "Server configured for an accept lock mechanism that "
+                     "cannot be used with perchild.  Falling back to FCNTL.");
+        ap_accept_lock_mech = APR_LOCK_FCNTL;
+    }
+
     /* Initialize cross-process accept lock */
     ap_lock_fname = apr_psprintf(_pconf, "%s.%u",
                                  ap_server_root_relative(_pconf, ap_lock_fname),