From c9db160bc45ed83f3b8178b275be9f30f89b00a4 Mon Sep 17 00:00:00 2001 From: Bob Date: Sun, 4 Sep 2016 19:03:16 +0200 Subject: [PATCH] fixed: also catch SIGTERM --- src/ampswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ampswitch.cpp b/src/ampswitch.cpp index 101c6bc..9ca58f4 100644 --- a/src/ampswitch.cpp +++ b/src/ampswitch.cpp @@ -115,7 +115,7 @@ CAmpSwitch::~CAmpSwitch() bool CAmpSwitch::Setup() { signal(SIGINT, SignalHandler); - signal(SIGINT, SignalHandler); + signal(SIGTERM, SignalHandler); if (pipe2(m_pipe, O_NONBLOCK) == -1) {