From fd245f2863d4ed0b8ff326ffea8d04f6da9c3d97 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 3 Dec 2021 14:30:32 -0800 Subject: [PATCH] Common: Correct shm_open() call. Don't remember what happened here, this was meant to be shm_open(). --- Common/MemArenaPosix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/MemArenaPosix.cpp b/Common/MemArenaPosix.cpp index f55e97e5a0..5016cd429f 100644 --- a/Common/MemArenaPosix.cpp +++ b/Common/MemArenaPosix.cpp @@ -60,7 +60,7 @@ bool MemArena::GrabMemSpace(size_t size) { for (int i = 0; i < 256; ++i) { snprintf(ram_temp_filename, sizeof(ram_temp_filename), "/ppsspp_%d.ram", i); // This opens atomically, so will fail if another process is starting. - fd = open(ram_temp_filename, O_RDWR | O_CREAT | O_EXCL, mode); + fd = shm_open(ram_temp_filename, O_RDWR | O_CREAT | O_EXCL, mode); if (fd >= 0) { INFO_LOG(MEMMAP, "Got shm file: %s", ram_temp_filename); is_shm = true;