diff options
author | Jeff Trawick <trawick@apache.org> | 2003-06-07 19:45:10 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2003-06-07 19:45:10 +0000 |
commit | e989338617c1821ca516d936705fc4b2b5521930 (patch) | |
tree | 8c275a9c3aa7fd5ebb74d59bf026dd93cec91693 /include/apr_proc_mutex.h | |
parent | 8337c716185eae5e5dfd9bc9b6caa4bc26bef083 (diff) | |
download | apr-e989338617c1821ca516d936705fc4b2b5521930.tar.gz |
Add proc_mutex_lockfile() for retrieving the name of the file
associated with a mutex.
This is used in Apache to simplify the effort of getting permissions
set properly on mutexes that will be created as root but used
as non-root. For flock-based mutexes, chown() needs to be performed
on the mutex file.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_proc_mutex.h')
-rw-r--r-- | include/apr_proc_mutex.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/apr_proc_mutex.h b/include/apr_proc_mutex.h index 197da270a..6cc6740ff 100644 --- a/include/apr_proc_mutex.h +++ b/include/apr_proc_mutex.h @@ -171,6 +171,13 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex); APR_DECLARE(apr_status_t) apr_proc_mutex_cleanup(void *mutex); /** + * Return the name of the lockfile for the mutex, or NULL + * if the mutex doesn't use a lock file + */ + +APR_DECLARE(const char *) apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex); + +/** * Display the name of the mutex, as it relates to the actual method used. * This matches the valid options for Apache's AcceptMutex directive * @param mutex the name of the mutex |