From cd5c944ea5819bf852e801a8b6ed0955cc4470e1 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 12 Sep 2018 11:57:19 +0200 Subject: [PATCH] BUILD: fix build without thread MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cyril Bonté reported that commit f9cc07c25b broke the build without thread. We don't need to initialise tid = 0 in mworker_loop, so we could completely remove it. --- src/haproxy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index d59635629..3bf1f3bcd 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -867,8 +867,6 @@ static void mworker_loop() mworker_catch_sigchld(NULL); /* ensure we clean the children in case some SIGCHLD were lost */ - tid = 0; - global.nbthread = 1; relative_pid = 1; pid_bit = 1;