Re: mod_watchdog.c looping for mutex?

2023-03-21 Thread jean-frederic clere

On 3/19/23 12:21, Yann Ylavic wrote:

On Sun, Mar 19, 2023 at 9:53 AM jean-frederic clere  wrote:


Hi,

While debugging I noted something in mod_watchdog.c
https://github.com/apache/httpd/blob/trunk/modules/core/mod_watchdog.c#L115

Shouldn't we have a else { } with a apr_sleep()?
Basically the thread is looping there :-(


Hm, it seems that there is a sleep() already here:
https://github.com/apache/httpd/blob/trunk/modules/core/mod_watchdog.c#L132
?


Oops sorry for the noise.




Regards;
Yann.


--
Cheers

Jean-Frederic



Re: mod_watchdog.c looping for mutex?

2023-03-19 Thread Yann Ylavic
On Sun, Mar 19, 2023 at 9:53 AM jean-frederic clere  wrote:
>
> Hi,
>
> While debugging I noted something in mod_watchdog.c
> https://github.com/apache/httpd/blob/trunk/modules/core/mod_watchdog.c#L115
>
> Shouldn't we have a else { } with a apr_sleep()?
> Basically the thread is looping there :-(

Hm, it seems that there is a sleep() already here:
https://github.com/apache/httpd/blob/trunk/modules/core/mod_watchdog.c#L132
?


Regards;
Yann.


mod_watchdog.c looping for mutex?

2023-03-19 Thread jean-frederic clere

Hi,

While debugging I noted something in mod_watchdog.c
https://github.com/apache/httpd/blob/trunk/modules/core/mod_watchdog.c#L115

Shouldn't we have a else { } with a apr_sleep()?
Basically the thread is looping there :-(
--
Cheers

Jean-Frederic