a partial conversion was made in r1299718, but I'm not
sure when that change is effective
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1370288 13f79535-47bb-0310-9956-
ffa450edef68
*) The following now respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR:
- APIs: ap_log_pid(), ap_remove_pid, ap_read_pid()
- - core: the scoreboard (ScoreBoardFile) and pid file (PidFile)
+ - core: the scoreboard (ScoreBoardFile), pid file (PidFile), and
+ mutexes (Mutex)
- mod_lbmethod_heartbeat, mod_heartmonitor: heartbeat storage file
- mod_socache_shmcb, mod_socache_dbm: shared memory or dbm for cache
[Jeff Trawick]
<p>With the file-based mechanisms <em>fcntl</em> and <em>flock</em>,
the path, if provided, is a directory where the lock file will be created.
- The default directory is httpd's run-time file directory relative to
- <directive module="core">ServerRoot</directive>. Always use a local disk
- filesystem for <code>/path/to/mutex</code> and never a directory residing
+ The default directory is httpd's run-time file directory,
+ <directive module="core">DefaultRuntimeDir</directive>. If a relative
+ path is provided, it is relative to
+ <directive module="core">DefaultRuntimeDir</directive>. Always use a local
+ disk filesystem for <code>/path/to/mutex</code> and never a directory residing
on a NFS- or AFS-filesystem. The basename of the file will be the mutex
type, an optional instance string provided by the module, and unless the
<code>OmitPID</code> keyword is specified, the process id of the httpd
* are looking to use
*/
if (file) {
- *mutexfile = ap_server_root_relative(pool, file);
+ *mutexfile = ap_runtime_dir_relative(pool, file);
if (!*mutexfile) {
return APR_BADARG;
}
}
#endif
- return ap_server_root_relative(p,
+ return ap_runtime_dir_relative(p,
apr_pstrcat(p,
mxcfg->dir,
"/",
}
if (mxcfg->dir)
- dir = ap_server_root_relative(p, mxcfg->dir);
+ dir = ap_runtime_dir_relative(p, mxcfg->dir);
apr_file_printf(out, "Mutex %s: dir=\"%s\" mechanism=%s %s\n", name, dir, mech,
mxcfg->omit_pid ? "[OmitPid]" : "");