commit | 62c8565cd5bbda6ac0dd818fa26922eeaef1605c | [log] [tgz] |
---|---|---|
author | Conrad Hoffmann <conrad@soundcloud.com> | Mon Jul 28 23:52:20 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Sep 11 07:36:40 2014 +0200 |
tree | 189e7ef9757e16300b2198dc49dacb4009639b5e | |
parent | 815d7d5c348575181874429b93b0ebdb0cf873c2 [diff] |
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> (cherry picked from commit 5b5ea9c93384da49eea0f67ebed0966d4167b17a)