aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2026-04-13 15:17:32 -0600
committerGitHub Enterprise <[email protected]>2026-04-13 15:17:32 -0600
commit977bd5b196875b47b6ed1616f41bb3d8b0f8b652 (patch)
tree46a8a67de6d9afdffa02e7f0b5d918fb46d03ffe /src/zencore/filesystem.cpp
parentfix utf characters in source code (#953) (diff)
parentRemoving CLOEXEC use on shared memory descriptors (diff)
downloadzen-977bd5b196875b47b6ed1616f41bb3d8b0f8b652.tar.xz
zen-977bd5b196875b47b6ed1616f41bb3d8b0f8b652.zip
Merge pull request #955 from ue-foundation/zs/shared-memory-open-flags-fix
Stop using O_CLOEXEC in shm_open
Diffstat (limited to 'src/zencore/filesystem.cpp')
-rw-r--r--src/zencore/filesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp
index 70d0f32b3..5160bfdc6 100644
--- a/src/zencore/filesystem.cpp
+++ b/src/zencore/filesystem.cpp
@@ -3462,7 +3462,7 @@ public:
ZEN_UNUSED(SystemGlobal);
std::string InstanceMapName = fmt::format("/{}", Name);
- ScopedFd FdGuard(shm_open(InstanceMapName.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0666));
+ ScopedFd FdGuard(shm_open(InstanceMapName.c_str(), O_RDWR | O_CREAT, 0666));
if (!FdGuard)
{
return {};