]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: don't use unitialized mworker_proc struct
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 14 Dec 2018 18:31:21 +0000 (19:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 18:41:38 +0000 (19:41 +0100)
commit6e0d8aee26dc0d54ddfc699e4ddd8dff90bf7cdb
treee10a7f81c839197d72dddf510f83d20fc9ca8cb0
parent84cca66ea37d8402b7139ce8be8e31a686523ce9
BUG/MINOR: mworker: don't use unitialized mworker_proc struct

If the reload fail after the parsing of the configuration, the
mworker_proc structures are created for the processes it tried to
create.

The mworker_proc_list_to_env() function was exporting these unitialized
structures in the "HAPROXY_PROCESSES" environment variable which was
leading to this kind of output in "show proc":

4294967295      worker          [was: 1]        1               17879d 16h26m28s
src/haproxy.c