1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-10-31 15:16:22 +00:00

CI: Make clang-tidy happy

This commit is contained in:
Carles Fernandez 2023-10-05 17:19:22 +02:00
parent b16c1de541
commit 9b5739603a
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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
}
}