BUG/MINOR: haproxy: don't wake already stopping threads on exit
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 17:23:19 +0000 (19:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 19:54:38 +0000 (21:54 +0200)
commit369a2efc27ee785a831aff23db8eb9b0d70c2e9d
tree3020de85ed1b8c00a23fe672eef581c78b4a4311
parentd59946e673bf1192dde3e136756f7da8cf604e2d
BUG/MINOR: haproxy: don't wake already stopping threads on exit

Commit d645574 ("MINOR: soft-stop: let the first stopper only signal
other threads") introduced a minor mistake which is that when a stopping
thread signals all other threads, it also signals itself. When
single-threaded, the process constantly wakes up while waiting for
last connections to exit. Let's reintroduce the lost mask to avoid
this.

No backport is needed, this is 2.2-dev only.
src/haproxy.c