From d7bddda1517ee870381528f8c49f97a41b201d89 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 31 Oct 2017 17:30:12 +0100 Subject: [PATCH] BUG/MEDIUM: threads: Initialize the sync-point The sync point must be initialized before starting threads. This line was lost in one of merges preparing the threads support integration. --- src/haproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/haproxy.c b/src/haproxy.c index 2d2d877239..ed6c8ba8df 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2806,6 +2806,8 @@ int main(int argc, char **argv) pthread_t *threads = calloc(global.nbthread, sizeof(pthread_t)); int i; + THREAD_SYNC_INIT((1UL << global.nbthread) - 1); + /* Init tids array */ for (i = 0; i < global.nbthread; i++) tids[i] = i; -- 2.47.3