]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: systemd: ensure a reload doesn't mask a stop
authorWilly Tarreau <w@1wt.eu>
Sat, 27 Feb 2016 07:26:14 +0000 (08:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 27 Feb 2016 07:28:43 +0000 (08:28 +0100)
commita3aa9e6840fa0bc7a74f3cab7400dcb33ad4537a
tree6a0cf949e6ea9f519f0dfd6b0245e5b1940cc0d8
parent6c2f7955e7300fb2cf0596fa5210cdeb3a2aea5f
MINOR: systemd: ensure a reload doesn't mask a stop

If a SIGHUP/SIGUSR2 is sent immediately after a SIGTERM/SIGINT and
before wait() is notified, it will mask it since there's no queue,
only a copy of the last received signal. Let's add a special check
before overwriting the signal so that SIGTERM/SIGINT are not masked.
src/haproxy-systemd-wrapper.c