Bugfix: Fixed incorrect variable name.

This commit is contained in:
Gunnar Beutner 2013-02-08 10:30:32 +01:00
parent 10cc9bb1a3
commit ad04a02153
1 changed files with 2 additions and 2 deletions

View File

@ -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 */