From b1721489e589bdf54d627152f3868450626235cc Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 3 Oct 2016 18:51:00 +0200 Subject: [PATCH] Kill the SysV queue listener when stopping the control thread --- src/core/receiver/control_thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/receiver/control_thread.cc b/src/core/receiver/control_thread.cc index 18e0ce6b9..21f4bcd07 100644 --- a/src/core/receiver/control_thread.cc +++ b/src/core/receiver/control_thread.cc @@ -538,7 +538,7 @@ void ControlThread::sysv_queue_listener() perror("msgget"); } - while(read_queue) + while(read_queue && !stop_) { if (msgrcv(msqid, &msg, msgrcv_size, 1, 0) != -1) {