Hi there, I hope this is a good forum to ask my question.
We (mod_security2 developers) use mutex locks. This code snippet was added recently: https://github.com/owasp-modsecurity/ModSecurity/blob/v2/master/apache2/modsecurity.c#L125-L168 As you can see, we create locks with these functions: apr_temp_dir_get() apr_file_mktemp() apr_global_mutex_create() This wrapper (acquire_global_lock()) works on Linux, but it seems to crash on FreeBSD: https://github.com/owasp-modsecurity/ModSecurity/issues/3255 I did some investigation and I found that after the apr_file_mktemp() returns with success and the created file name is given to apr_global_mutex_create() then it removes that. In this comment: https://github.com/owasp-modsecurity/ModSecurity/issues/3255#issuecomment-2383132160 I explained the results (with gdb and truss). My question is: what is the expected way to use file mutexes? Thanks for your help, a.