From 8894a4fb20ef330c83083cdd44805216fb5557df Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 11 Oct 2002 15:41:52 +0000 Subject: [PATCH] If the server is configured with an accept mutex type that isn't comaptible 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index 2179b4dde7..d9f26230ce 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -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), -- 2.50.1