]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads/peers: decrement, not increment jobs on quitting
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Nov 2017 13:49:30 +0000 (14:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Nov 2017 13:51:20 +0000 (14:51 +0100)
commitcea8537efdd8306742cda30faafb03732567a6ae
tree499bbc3af08dc35a5d345a24f4ad3ab5a1ce55c9
parentcebd7962e2bcd31bfe67ef6426a5210d1ec0428b
BUG/MEDIUM: threads/peers: decrement, not increment jobs on quitting

Commit 8d8aa0d ("MEDIUM: threads/listeners: Make listeners thread-safe")
mistakenly placed HA_ATOMIC_ADD(job, 1) to replace a job--, so it maintains
the job count too high preventing the process from cleanly exiting on
reload.

This needs to be backported to 1.8.
src/peers.c