]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: startup: make if condition to kill old pids more readable
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 3 Dec 2024 20:13:29 +0000 (21:13 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 6 Dec 2024 11:00:22 +0000 (12:00 +0100)
commitf24e57d717a96a4e031fb1b4691c8b4887c1f575
tree6df8d8656117608ad15c6dc4ff76e5785ca4a464
parentcd0b58e23e12f12369bc1a6e65c6a97409ee8cd6
CLEANUP: startup: make if condition to kill old pids more readable

Update comment and condition. nb_oldpids it's not a pointer, but a signed int,
which keeps the max number of elements in oldpids array. So, it's a good
practice to check, if it's strictly positive here.
src/haproxy.c