From: Cyril Bonté Date: Wed, 6 Aug 2014 23:55:39 +0000 (+0200) Subject: BUG/MINOR: checks: external checks shouldn't wait for timeout to return the result X-Git-Tag: v1.6-dev1~339 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=9dbcfabafb2cf2a6a1ae71e34bbf6ebbabc389a0;p=haproxy.git 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. --- diff --git a/src/checks.c b/src/checks.c index aad2037ca..d616e969e 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1519,6 +1519,7 @@ static void pid_list_expire(pid_t pid, int status) elem->t->expire = now_ms; elem->status = status; elem->exited = 1; + task_wakeup(elem->t, TASK_WOKEN_IO); return; } }