mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-01 10:15:21 +02:00
Merge pull request #15197 from hrydgard/shm-open
Common: Correct shm_open() call
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user