diff --git a/src/check.c b/src/check.c index 1474a55f9..85691de87 100644 --- a/src/check.c +++ b/src/check.c @@ -1279,7 +1279,7 @@ struct task *process_chk_conn(struct task *t, void *context, unsigned int state) * was erased during the bounce. */ if (!tick_isset(t->expire)) { - t->expire = now_ms; + t->expire = tick_add(now_ms, 0); expired = 0; } } diff --git a/src/extcheck.c b/src/extcheck.c index c71639cd5..152acaddc 100644 --- a/src/extcheck.c +++ b/src/extcheck.c @@ -162,7 +162,7 @@ static void pid_list_expire(pid_t pid, int status) HA_SPIN_LOCK(PID_LIST_LOCK, &pid_list_lock); list_for_each_entry(elem, &pid_list, list) { if (elem->pid == pid) { - elem->t->expire = now_ms; + elem->t->expire = tick_add(now_ms, 0); elem->status = status; elem->exited = 1; task_wakeup(elem->t, TASK_WOKEN_IO);