aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil
diff options
context:
space:
mode:
authorzousar <[email protected]>2026-04-13 14:24:11 -0600
committerzousar <[email protected]>2026-04-13 14:24:11 -0600
commitf2eb4ff5ec5446b4d01d67e89976728d88be598e (patch)
tree2f4f937a12ba668cd7643a7943051993dd61dd4a /src/zenutil
parentStop using O_CLOEXEC in shm_open (diff)
downloadzen-f2eb4ff5ec5446b4d01d67e89976728d88be598e.tar.xz
zen-f2eb4ff5ec5446b4d01d67e89976728d88be598e.zip
Fix copy and paste errors
Diffstat (limited to 'src/zenutil')
-rw-r--r--src/zenutil/zenserverprocess.cpp6
1 files changed, 3 insertions, 3 deletions
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)