From: Willy Tarreau Date: Wed, 20 Oct 2021 16:43:30 +0000 (+0200) Subject: BUG/MEDIUM: checks: fix the starting thread for external checks X-Git-Tag: v2.5-dev11~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a89c19127d2c355a549f4e124a71c6285c51cd3e;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: checks: fix the starting thread for external checks When cleaning up the code to remove most explicit task masks in commit beeabf531 ("MINOR: task: provide 3 task_new_* wrappers to simplify the API"), a mistake was done with the external checks where the call does task_new_on(1) instead of task_new_on(0) due to the confusion with the previous mask 1. No backport is needed as that's only 2.5-dev. --- diff --git a/src/check.c b/src/check.c index dd6a9517df..f0ae81504d 100644 --- a/src/check.c +++ b/src/check.c @@ -1391,7 +1391,7 @@ int start_check_task(struct check *check, int mininter, /* task for the check. Process-based checks exclusively run on thread 1. */ if (check->type == PR_O2_EXT_CHK) - t = task_new_on(1); + t = task_new_on(0); else t = task_new_anywhere();