From f2eb4ff5ec5446b4d01d67e89976728d88be598e Mon Sep 17 00:00:00 2001 From: zousar Date: Mon, 13 Apr 2026 14:24:11 -0600 Subject: Fix copy and paste errors --- src/zenutil/zenserverprocess.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/zenutil/zenserverprocess.cpp b/src/zenutil/zenserverprocess.cpp index 20208e136..25e9cfa5d 100644 --- a/src/zenutil/zenserverprocess.cpp +++ b/src/zenutil/zenserverprocess.cpp @@ -197,7 +197,7 @@ ZenServerState::Initialize() ThrowLastError("Could not open a shared memory object"); } } - fcntl(FdGuard.Fd, F_SETFD, FD_CLOEXEC); + fcntl(Fd, F_SETFD, FD_CLOEXEC); fchmod(Fd, 0666); void* hMap = (void*)intptr_t(Fd); @@ -658,7 +658,7 @@ ZenServerInstanceInfo::Create(const Oid& SessionId, const InstanceInfoData& Data { ThrowLastError("Could not create instance info shared memory"); } - fcntl(FdGuard.Fd, F_SETFD, FD_CLOEXEC); + fcntl(Fd, F_SETFD, FD_CLOEXEC); fchmod(Fd, 0666); if (ftruncate(Fd, kInstanceInfoSize) < 0) @@ -726,7 +726,7 @@ ZenServerInstanceInfo::OpenReadOnly(const Oid& SessionId) { return false; } - fcntl(FdGuard.Fd, F_SETFD, FD_CLOEXEC); + fcntl(Fd, F_SETFD, FD_CLOEXEC); void* pBuf = mmap(nullptr, kInstanceInfoSize, PROT_READ, MAP_SHARED, Fd, 0); if (pBuf == MAP_FAILED) -- cgit v1.2.3