[icinga-checkins] icinga.org: icinga2/master: Bugfix: Fixed incorrect variable name.

git at icinga.org git at icinga.org
Fri Feb 8 10:30:43 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Feb  8 10:30:32 2013 +0100

Bugfix: Fixed incorrect variable name.

---

 lib/base/application.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/base/application.cpp b/lib/base/application.cpp
index e34f2fc..aff46e3 100644
--- a/lib/base/application.cpp
+++ b/lib/base/application.cpp
@@ -460,11 +460,11 @@ void Application::UpdatePidFile(const String& filename)
 
 #ifdef F_GETFL
 		int flags;
-		flags = fcntl(fd, F_GETFL, 0);
+		flags = fcntl(fileno(m_PidFile), F_GETFL, 0);
 		if (flags < 0)
 			BOOST_THROW_EXCEPTION(PosixException("fcntl failed", errno));
 
-		if (fcntl(fd, F_SETFL, flags | FD_CLOEXEC) < 0)
+		if (fcntl(fileno(m_PidFile), F_SETFL, flags | FD_CLOEXEC) < 0)
 			BOOST_THROW_EXCEPTION(PosixException("fcntl failed", errno));
 #endif /* FD_CLOEXEC */
 





More information about the icinga-checkins mailing list