]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listeners: make listeners count consistent with reality
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 06:18:11 +0000 (08:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 09:49:52 +0000 (11:49 +0200)
commit2cc5bae0b897a377d9f6e2740a091008fbbe42e3
tree9f16f4b88f9085a7fb99c85aac8b1d17f5303460
parent0de59fd53a117a2878141522acd03e3338320218
MINOR: listeners: make listeners count consistent with reality

Some places call delete_listener() then decrement the number of
listeners and jobs. At least one other place calls delete_listener()
without doing so, but since it's in deinit(), it's harmless and cannot
risk to cause zombie processes to survive. Given that the number of
listeners and jobs is incremented when creating the listeners, it's
much more logical to symmetrically decrement them when deleting such
listeners.
include/types/global.h
src/listener.c
src/proxy.c