[icinga-checkins] icinga.org: icinga2/master: Fix race condition in Process::WorkerThreadProc .

git at icinga.org git at icinga.org
Sun Mar 10 03:09:15 CET 2013


Module: icinga2
Branch: master
Commit: 5a861b0de0e318200bf98e4f6486d61171a6c2ca
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=5a861b0de0e318200bf98e4f6486d61171a6c2ca

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Mar  9 15:41:07 2013 +0100

Fix race condition in Process::WorkerThreadProc.

---

 lib/base/process-unix.cpp |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp
index f390e66..3094471 100644
--- a/lib/base/process-unix.cpp
+++ b/lib/base/process-unix.cpp
@@ -119,9 +119,6 @@ void Process::WorkerThreadProc(int taskFd)
 
 				unsigned int want = MaxTasksPerThread - tasks.size();
 
-				if (want > m_Tasks.size())
-					want = m_Tasks.size();
-
 				if (want > 0) {
 					boost::mutex::scoped_lock lock(m_Mutex);
 





More information about the icinga-checkins mailing list