Mailing List Archive

mod_watchdog.c looping for mutex?
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
Re: mod_watchdog.c looping for mutex? [ In reply to ]
On Sun, Mar 19, 2023 at 9:53?AM jean-frederic clere <jfclere@gmail.com> 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.
Re: mod_watchdog.c looping for mutex? [ In reply to ]
On 3/19/23 12:21, Yann Ylavic wrote:
> On Sun, Mar 19, 2023 at 9:53?AM jean-frederic clere <jfclere@gmail.com> 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