- Fix dnstap wakeup, a running wakeup timer is left to expire and not

increased, a timer is started when the dtio thread is sleeping,
  the timer set disabled when the dtio thread goes to sleep, and
  after sleep the thread checks to see if there are messages to log
  immediately.
This commit is contained in:
W.C.A. Wijngaards
2024-07-19 16:16:02 +02:00
parent c3dd6a2dbd
commit 3af4e44646
3 changed files with 46 additions and 8 deletions
+6
View File
@@ -1655,6 +1655,12 @@ void comm_timer_set(struct comm_timer* timer, struct timeval* tv)
timeval_add(&t->tv, &t->runtime->now_tv);
}
int comm_timer_is_set(struct comm_timer* timer)
{
struct fake_timer* t = (struct fake_timer*)timer;
return t->enabled;
}
void comm_timer_delete(struct comm_timer* timer)
{
struct fake_timer* t = (struct fake_timer*)timer;