[hamradio-commits] [gnss-sdr] 92/303: Kill the SysV queue listener when stopping the control thread

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:35:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit b1721489e589bdf54d627152f3868450626235cc
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Mon Oct 3 18:51:00 2016 +0200

    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 18e0ce6..21f4bcd 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)
                 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list