Skip to content

Conversation

@marcstern
Copy link

Fix for #3255
We don't have to generate a temp name ourselves, it'll be done in apr_global_mutex_create().
We don't have to provide a filename, apr_global_mutex_create() generates one automatically.
Moreover, under Unix & Windows, the preferred mechanism won't use a file at all.
apr_file_mktemp() cannot be used as it creates the file (at least on FreeBSD).
Discussion in Apache mailing list: https://lists.apache.org/thread/ykb26kg4lgcqnldvxwd9p6hv16fy4z9l

airween and others added 3 commits October 2, 2024 17:11
…_global_mutex_create().

We don't have to provide a filename, apr_global_mutex_create() generates one automatically.
Moreover, under Unix & Windows, the preferred mechanism won't use a file at all => don't waste time.
apr_file_mktemp() cannot be used as it creates the file (at least on FreeBSD).
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2024

@marcstern
Copy link
Author

Replaced by #3269

@marcstern marcstern closed this Oct 3, 2024
@marcstern marcstern deleted the v2/pr/lock_fileless branch October 3, 2024 14:50
@marcstern marcstern restored the v2/pr/lock_fileless branch October 22, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants