Terminate run when testing TTFF

This commit is contained in:
Carles Fernandez
2016-10-01 18:43:58 +02:00
parent c9ef673afa
commit b80eba91c8
2 changed files with 4 additions and 14 deletions
+2 -1
View File
@@ -529,9 +529,10 @@ void ControlThread::sysv_queue_listener()
int msqid;
key_t key = 1102;
// wait for the queue to be created
while((msqid = msgget(key, 0644)) == -1){}
while(read_queue)
{
while((msqid = msgget(key, 0644)) == -1){}
if (msgrcv(msqid, &msg, msgrcv_size, 1, 0) != -1)
{