1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Kill the SysV queue listener when stopping the control thread

This commit is contained in:
Carles Fernandez 2016-10-03 18:51:00 +02:00
parent 6f2aabe0b6
commit b1721489e5

View File

@ -538,7 +538,7 @@ void ControlThread::sysv_queue_listener()
perror("msgget"); perror("msgget");
} }
while(read_queue) while(read_queue && !stop_)
{ {
if (msgrcv(msqid, &msg, msgrcv_size, 1, 0) != -1) if (msgrcv(msqid, &msg, msgrcv_size, 1, 0) != -1)
{ {