Do not stop the receiver if SysV message queues can't be created

This commit is contained in:
Carles Fernandez 2020-06-30 10:41:59 +02:00
parent eaf80314d7
commit 98bea8292c
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 3 additions and 2 deletions

View File

@ -53,6 +53,7 @@ SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades <carles.fernandez@cttc
`None`. This allows packaging in some distributions that pass an arbitrary
name as the build type (e.g., Gentoo) to avoid unexpected compiler flags. The
building option `ENABLE_PACKAGING` must set to `ON` when packaging.
- Do not stop the receiver if SysV message queues cannot be created.
### Improvements in Reliability:

View File

@ -1106,8 +1106,8 @@ void ControlThread::sysv_queue_listener()
if ((msqid_ = msgget(key, 0644 | IPC_CREAT)) == -1)
{
perror("GNSS-SDR cannot create SysV message queues");
exit(1);
std::cerr << "GNSS-SDR cannot create SysV message queues" << std::endl;
read_queue = false;
}
while (read_queue && !stop_)