From: Christopher Faulet Date: Tue, 31 Oct 2017 16:30:12 +0000 (+0100) Subject: BUG/MEDIUM: threads: Initialize the sync-point X-Git-Tag: v1.8-rc1~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7bddda1517ee870381528f8c49f97a41b201d89;p=thirdparty%2Fhaproxy.git 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. --- 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;