diff --git a/src/haproxy-systemd-wrapper.c b/src/haproxy-systemd-wrapper.c index 0c076a6a4..d118ec6ff 100644 --- a/src/haproxy-systemd-wrapper.c +++ b/src/haproxy-systemd-wrapper.c @@ -123,7 +123,8 @@ static int read_pids(char ***pid_strv) static void signal_handler(int signum) { - caught_signal = signum; + if (caught_signal != SIGINT && caught_signal != SIGTERM) + caught_signal = signum; } /* handles SIGUSR2 and SIGHUP only */