Commit d09b1d73 d09b1d73ac69c42280c48e58f1912ce242ca6edc by Sergey Poznyakoff

Minor fix.

* libmailutils/diag/wd.c (mu_wd): Revamp the loop to ensure the proposed
way of connecting with gdb works in case of a non-zero timeout.
1 parent 3bf76047
......@@ -49,10 +49,9 @@ mu_wd (unsigned to)
if (to)
{
_count_down = to;
while (_count_down)
while (_count_down--);
{
sleep (1);
_count_down--;
}
}
else
......