mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 08:24:42 +00:00
BUG/MINOR: checks: external checks shouldn't wait for timeout to return the result
When the child process terminates, it should wake up the associated task to process the result immediately, otherwise it will be available only when the task expires. This fix is specific to the 1.6 branch.
This commit is contained in:
parent
99c5bf5ff4
commit
9dbcfabafb
@ -1519,6 +1519,7 @@ static void pid_list_expire(pid_t pid, int status)
|
|||||||
elem->t->expire = now_ms;
|
elem->t->expire = now_ms;
|
||||||
elem->status = status;
|
elem->status = status;
|
||||||
elem->exited = 1;
|
elem->exited = 1;
|
||||||
|
task_wakeup(elem->t, TASK_WOKEN_IO);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user