From: William Lallemand Date: Wed, 12 Sep 2018 09:57:19 +0000 (+0200) Subject: BUILD: fix build without thread X-Git-Tag: v1.9-dev2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd5c944ea5819bf852e801a8b6ed0955cc4470e1;p=thirdparty%2Fhaproxy.git BUILD: fix build without thread 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. --- diff --git a/src/haproxy.c b/src/haproxy.c index d59635629f..3bf1f3bcd8 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;