From 9b5739603a83ebef8ab726585fec2c36c520453e Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 5 Oct 2023 17:19:22 +0200 Subject: [PATCH] CI: Make clang-tidy happy --- src/core/receiver/control_thread.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/receiver/control_thread.cc b/src/core/receiver/control_thread.cc index 8c581986f..00ebe5129 100644 --- a/src/core/receiver/control_thread.cc +++ b/src/core/receiver/control_thread.cc @@ -91,17 +91,18 @@ void ControlThread::handle_signal(int sig) LOG(INFO) << "GNSS-SDR received " << sig << " OS signal"; if (sig == SIGINT || sig == SIGTERM || sig == SIGHUP) { - std::cout << "Stopping GNSS-SDR via SIGINT or SIGTERM...\n"; - ControlThread::me->control_queue_->push(pmt::make_any(command_event_make(200, 0))); ControlThread::me->stop_ = true; - /* Reset signal handling to default behavior */ - if (sig == SIGINT) signal(SIGINT, SIG_DFL); + // Reset signal handling to default behavior + if (sig == SIGINT) + { + signal(SIGINT, SIG_DFL); + } } else if (sig == SIGCHLD) { - LOG(INFO) << "received SIGCHLD signal"; + LOG(INFO) << "Received SIGCHLD signal"; // todo } }