modules use httpd mutexes.
Add an init call from core's pre-config hook to ensure init is
performed before the config is parsed.
PR: 48787
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@912666 13f79535-47bb-0310-9956-ffa450edef68
util_mutex.c: In function ‘ap_set_mutex’:
util_mutex.c:188: warning: comparison between pointer and integer
util_mutex.c:174: warning: unused variable ‘type’
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@886214 13f79535-47bb-0310-9956-ffa450edef68
addition of the parent pid to the generated lock file
name.
Change the Mutex directive syntax from
Mutex default|mutex-name mechanism
to
Mutex mechanism [default|mutex-name] ... [OmitPID]
as suggested by wrowe. (Thanks!)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@886154 13f79535-47bb-0310-9956-ffa450edef68
DEFAULT_REL_RUNTIMEDIR defined only in mpm_default.h for
NetWare and dsp-based Win32 builds
mpm_default.h not in normal include path on Unix
thus, hardcode "logs" directory when DEFAULT_REL_RUNTIMEDIR
isn't defined
(file-based mutexes aren't configurable for those platforms anyway)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883828 13f79535-47bb-0310-9956-ffa450edef68
and WatchdogMutexPath with a single Mutex directive. Add APIs to
simplify setup and user customization of APR proc and global mutexes.
(See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer
respected; set DEFAULT_REL_RUNTIMEDIR instead.
Some existing modules, such as mod_ldap and mod_auth_digest gain
configurability for their mutexes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883540 13f79535-47bb-0310-9956-ffa450edef68
cannot be data symbols when mod_ssl is built as a loadable module;
using an external string constant in a loadable module is not portable.
Also reorganize file and sem to follow their explicit mechanisms,
and ensured that the explicit mechansims are listed in order of
preference.
This raises a question, would [fcntl|file] be a clearer way of
indiciating what the file/sem methods devolve to?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568833 13f79535-47bb-0310-9956-ffa450edef68
locking method and the lockfile location, I never
liked how AcceptMutex was linked to LockFile. This
seemed unnecessary. Much better to have AcceptMutex
do both as well. Plus, now that we will likely see
other modules require a "standard" way of setting
mutexes, why not have Apache provide that as
an API of sorts.
Anyway, LockFile is now depreciated and AcceptMutex
is now SSLMutex-like. We also provide a short
function that "parses" out a mutex parameter
and strips out the mechanism and lockfile location.
AcceptMutex and SSLMutex is this capability.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467326 13f79535-47bb-0310-9956-ffa450edef68