]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads: handle signal queue only in thread 0
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 7 Jun 2018 07:46:01 +0000 (09:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Jun 2018 16:22:31 +0000 (18:22 +0200)
commit1aab50bb4aaf59f0dd6f0e98ccbf023209f92a69
treefc0d5c5a92548e4f4ebf3cdb2ff3bdf32b8dd759
parentfc044c98e43ca5373c535e1e5f00e47ce8e5acb4
BUG/MEDIUM: threads: handle signal queue only in thread 0

Signals were handled in all threads which caused some signals to be lost
from time to time. To avoid complicated lock system (threads+signals),
we prefer handling the signals in one thread avoiding concurrent access.

The side effect of this bug was that some process were not leaving from
time to time during a reload.

This patch must be backported in 1.8.
src/haproxy.c
src/signal.c