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 /locks/win32 | |
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 'locks/win32')
-rw-r--r-- | locks/win32/proc_mutex.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/locks/win32/proc_mutex.c b/locks/win32/proc_mutex.c index 37a1d0cec..b490299ff 100644 --- a/locks/win32/proc_mutex.c +++ b/locks/win32/proc_mutex.c @@ -205,6 +205,11 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex) return stat; } +APR_DECLARE(const char *) apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex) +{ + return NULL; +} + APR_DECLARE(const char *) apr_proc_mutex_name(apr_proc_mutex_t *mutex) { return mutex->fname; |