]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix build without thread
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 12 Sep 2018 09:57:19 +0000 (11:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 11:59:00 +0000 (13:59 +0200)
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

index d59635629f4f83752509ea9915640178a6410085..3bf1f3bcd8b564ed5b4a22176c6de9ec25871b06 100644 (file)
@@ -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;