]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: global: remove the relative_pid from global and mworker
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 07:08:18 +0000 (09:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:52:42 +0000 (16:52 +0200)
commite8422bf56b4ea63f146273226cea677bbe11fd91
tree0c8165323a74cf92a7cf1af482ac60e40fb213f0
parent06987f42387526d33608cff8dd34fa4ce37993c1
MEDIUM: global: remove the relative_pid from global and mworker

The relative_pid is always 1. In mworker mode we also have a
child->relative_pid which is always equalt relative_pid, except for a
master (0) or external process (-1), but these types are usually tested
for, except for one place that was amended to carefully check for the
PROC_O_TYPE_WORKER option.

Changes were pretty limited as most usages of relative_pid were for
designating a process in stats output and peers protocol.
include/haproxy/global.h
include/haproxy/mworker-t.h
src/cli.c
src/haproxy.c
src/mworker-prog.c
src/mworker.c
src/peers.c
src/sample.c
src/stats.c