From 8697915334164f742c4619d365c8f7bd6bf8d5a1 Mon Sep 17 00:00:00 2001 From: Zofia Abramowska Date: Thu, 16 Jun 2016 13:16:42 +0200 Subject: [PATCH] Fix setting select timeout in NotificationTalker Change-Id: I87f3c46dfc2d6ff2f0b468ecbbb5afbaba5cd418 --- src/agent/main/NotificationTalker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/main/NotificationTalker.cpp b/src/agent/main/NotificationTalker.cpp index 725a27a..d5b2e96 100644 --- a/src/agent/main/NotificationTalker.cpp +++ b/src/agent/main/NotificationTalker.cpp @@ -39,7 +39,6 @@ namespace Agent { NotificationTalker::NotificationTalker() : m_failed(true), m_stopflag(false) { - m_select.setTimeout(100); try { m_sockfd = Socket::listen(Path::getSocketPath()); m_thread = std::thread(&NotificationTalker::run, this); @@ -284,6 +283,7 @@ void NotificationTalker::run() for (auto pair : m_userToFd) m_select.add(std::get<1>(pair)); + m_select.setTimeout(100); int rv = m_select.exec(); if (m_stopflag) { -- 2.7.4