Re: Question about file mutex

2024-10-02 Thread Ruediger Pluem
On 10/2/24 9:36 AM, Nick Gearls wrote: > Am I right that we can call apr_global_mutex_create() with a NULL filename > and APR_LOCK_DEFAULT? > In case the underlying locking mechanism needs a filename, it will generate > one. > Moreover, if we only support Unix & Windows, the preferred mechanis

Re: Question about file mutex

2024-10-02 Thread Nick Gearls
Am I right that we can call apr_global_mutex_create() with a NULL filename and APR_LOCK_DEFAULT? In case the underlying locking mechanism needs a filename, it will generate one. Moreover, if we only support Unix & Windows, the preferred mechanism won'

Re: Question about file mutex

2024-10-01 Thread Ruediger Pluem
On 10/1/24 9:32 AM, Ervin Hegedüs wrote: > Hi there, > > I hope this is a good forum to ask my question. > > We (mod_security2 developers) use mutex locks. Thiscode snippet was added > recently: > > https://github.com/owasp-modsecurity/ModSecurity/blob/v2/master/apache2/modsecurity.c#L125-L1

Question about file mutex

2024-10-01 Thread Ervin Hegedüs
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: a

Re: Question about file mutex

2024-10-01 Thread Ervin Hegedüs
Hi Rüdiger, many thanks for this information! We will check them soon. Regards, a. On Tue, Oct 1, 2024 at 2:03 PM Ruediger Pluem wrote: > > > On 10/1/24 9:32 AM, Ervin Hegedüs wrote: > > Hi there, > > > > I hope this is a good forum to ask my question. > > > > We (mod_security2 developers)