commit | 4351ea61fbddf88c960179d60b0e0f1b090f0b70 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Oct 25 16:49:31 2016 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 25 17:36:20 2016 +0200 |
tree | 52c7353fe68462a27b9ac114df8e44bd71f17673 | |
parent | 7643d09dca4d0eed97ba3c29d4f4fd1f037f96ae [diff] |
BUG/MINOR: systemd: always restore signals before execve() Since signals are inherited, we must restore them before calling execve() and intercept them again after a failed execve(). In order to cleanly deal with the SIGUSR2/SIGHUP loops where we re-exec the wrapper, we ignore these two signals during a re-exec, and restore them to defaults when spawning haproxy. This should be backported to 1.6 and 1.5.