MEDIUM: Improve signal handling in systemd wrapper.
authorConrad Hoffmann <conrad@soundcloud.com>
Mon, 28 Jul 2014 21:52:20 +0000 (23:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Jul 2014 09:05:01 +0000 (11:05 +0200)
commit5b5ea9c93384da49eea0f67ebed0966d4167b17a
tree24617ac18661dfa5753c38832621807b2ab45c8b
parenteb2cf45b72a7e14c581276247381dc1ac76be2c0
MEDIUM: Improve signal handling in systemd wrapper.

Move all code out of the signal handlers, since this is potentially
dangerous. To make sure the signal handlers behave as expected, use
sigaction() instead of signal(). That also obsoletes messing with
the signal mask after restart.

Signed-off-by: Conrad Hoffmann <conrad@soundcloud.com>
src/haproxy-systemd-wrapper.c