[icinga-checkins] icinga.org: icinga2/fix/process-spawn-buf-13655: Style fixes

git at icinga.org git at icinga.org
Thu Jan 12 09:53:06 CET 2017


Module: icinga2
Branch: fix/process-spawn-buf-13655
Commit: 8e9d84dd8152bde533574bfa036959a4d63dd759
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=8e9d84dd8152bde533574bfa036959a4d63dd759

Author: Gunnar Beutner <gunnar.beutner at icinga.com>
Date:   Thu Jan 12 09:53:00 2017 +0100

Style fixes

---

 lib/base/process.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/base/process.cpp b/lib/base/process.cpp
index e93a302..d57b765 100644
--- a/lib/base/process.cpp
+++ b/lib/base/process.cpp
@@ -257,7 +257,7 @@ static void ProcessHandler(void)
 
 		struct iovec io;
 		io.iov_base = &length;
-		io.iov_len = sizeof(size_t);
+		io.iov_len = sizeof(length);
 
 		msg.msg_iov = &io;
 		msg.msg_iovlen = 1;
@@ -392,7 +392,7 @@ static pid_t ProcessSpawn(const std::vector<String>& arguments, const Dictionary
 
 	struct iovec io;
 	io.iov_base = &length;
-	io.iov_len = sizeof(size_t);
+	io.iov_len = sizeof(length);
 
 	msg.msg_iov = &io;
 	msg.msg_iovlen = 1;
@@ -444,7 +444,7 @@ static int ProcessKill(pid_t pid, int signum)
 
 	boost::mutex::scoped_lock lock(l_ProcessControlMutex);
 
-	while (send(l_ProcessControlFD, &length, sizeof(size_t), 0) < 0)
+	while (send(l_ProcessControlFD, &length, sizeof(length), 0) < 0)
 		StartSpawnProcessHelper();
 
 	if (send(l_ProcessControlFD, jrequest.CStr(), jrequest.GetLength(), 0) < 0) {
@@ -477,7 +477,7 @@ static int ProcessWaitPID(pid_t pid, int *status)
 
 	boost::mutex::scoped_lock lock(l_ProcessControlMutex);
 
-	while (send(l_ProcessControlFD, &length, sizeof(size_t), 0) < 0)
+	while (send(l_ProcessControlFD, &length, sizeof(length), 0) < 0)
 		StartSpawnProcessHelper();
 
 	if (send(l_ProcessControlFD, jrequest.CStr(), jrequest.GetLength(), 0) < 0) {



More information about the icinga-checkins mailing list