mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-10-31 23:26:22 +00:00
CI: Make clang-tidy happy
This commit is contained in:
parent
b16c1de541
commit
9b5739603a
@ -91,17 +91,18 @@ void ControlThread::handle_signal(int sig)
|
|||||||
LOG(INFO) << "GNSS-SDR received " << sig << " OS signal";
|
LOG(INFO) << "GNSS-SDR received " << sig << " OS signal";
|
||||||
if (sig == SIGINT || sig == SIGTERM || sig == SIGHUP)
|
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->control_queue_->push(pmt::make_any(command_event_make(200, 0)));
|
||||||
ControlThread::me->stop_ = true;
|
ControlThread::me->stop_ = true;
|
||||||
|
|
||||||
/* Reset signal handling to default behavior */
|
// Reset signal handling to default behavior
|
||||||
if (sig == SIGINT) signal(SIGINT, SIG_DFL);
|
if (sig == SIGINT)
|
||||||
|
{
|
||||||
|
signal(SIGINT, SIG_DFL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (sig == SIGCHLD)
|
else if (sig == SIGCHLD)
|
||||||
{
|
{
|
||||||
LOG(INFO) << "received SIGCHLD signal";
|
LOG(INFO) << "Received SIGCHLD signal";
|
||||||
// todo
|
// todo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user