From 203266f42cd61ebe006055f50c76b92ee048a35c Mon Sep 17 00:00:00 2001 From: David Hummel <6109326+hummeltech@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:36:12 -0700 Subject: [PATCH] Use P_tmpdir rather than /tmp --- src/mod_tile.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mod_tile.c b/src/mod_tile.c index de448be0..d9411011 100644 --- a/src/mod_tile.c +++ b/src/mod_tile.c @@ -1756,8 +1756,7 @@ static int mod_tile_post_config(apr_pool_t *pconf, apr_pool_t *plog, * depending on OS and locking mechanism of choice, the file * may or may not be actually created. */ - mutexfilename = apr_psprintf(pconf, "/tmp/httpd_mutex.%ld", - (long int)getpid()); + mutexfilename = apr_psprintf(pconf, "%s/httpd_mutex.%ld", P_tmpdir, (long int)getpid()); rs = apr_global_mutex_create(&stats_mutex, (const char *)mutexfilename, APR_LOCK_DEFAULT, pconf); @@ -1786,8 +1785,7 @@ static int mod_tile_post_config(apr_pool_t *pconf, apr_pool_t *plog, * depending on OS and locking mechanism of choice, the file * may or may not be actually created. */ - mutexfilename = apr_psprintf(pconf, "/tmp/httpd_mutex_delay.%ld", - (long int)getpid()); + mutexfilename = apr_psprintf(pconf, "%s/httpd_mutex_delay.%ld", P_tmpdir, (long int)getpid()); rs = apr_global_mutex_create(&delaypool_mutex, (const char *)mutexfilename, APR_LOCK_DEFAULT, pconf);