MINOR: init/threads: make the threads array global
authorWilly Tarreau <w@1wt.eu>
Fri, 3 May 2019 07:22:44 +0000 (09:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 May 2019 08:16:30 +0000 (10:16 +0200)
commitc40efc19194a7b21137f9d2b3a39e83003689fef
treedd8fe0c4f5a21b5a8b509eda71bef45c1f9f05af
parentb4f7cc3839dfe826cbcf937d54ea2e6dcd9ba621
MINOR: init/threads: make the threads array global

Currently the thread array is a local variable inside a function block
and there is no access to it from outside, which often complicates
debugging. Let's make it global and export it. Also the allocation
return is now checked.
include/types/global.h
src/haproxy.c