]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: thread: report multi-thread support in haproxy -vv
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Nov 2017 22:39:25 +0000 (23:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Nov 2017 22:39:25 +0000 (23:39 +0100)
Otherwise it's hard to know if it was enabled or not.

src/hathreads.c

index 26a6493099ad0a983ecedc23a716b12b838d179a..0db48c9a36ca6e35b00bd23ecc91304b98b3c5f9 100644 (file)
@@ -13,6 +13,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 
+#include <common/cfgparse.h>
 #include <common/hathreads.h>
 #include <common/standard.h>
 #include <proto/fd.h>
@@ -154,6 +155,7 @@ static void __hathreads_init(void)
 #if defined(DEBUG_THREAD) || defined(DEBUG_FULL)
        memset(lock_stats, 0, sizeof(lock_stats));
 #endif
+       hap_register_build_opts("Built with multi-threading support.", 1);
 }
 
 #endif