mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
set permissions on shared memory
This commit is contained in:
committed by
Ryan Fleury
parent
1cb1522931
commit
69fe51ec94
@@ -652,7 +652,7 @@ os_shared_memory_alloc(U64 size, String8 name)
|
||||
{
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
String8 name_copy = push_str8_copy(scratch.arena, name);
|
||||
int id = shm_open((char *)name_copy.str, O_RDWR | O_CREAT, 0);
|
||||
int id = shm_open((char *)name_copy.str, O_RDWR | O_CREAT, 0666);
|
||||
ftruncate(id, size);
|
||||
OS_Handle result = {(U64)id};
|
||||
scratch_end(scratch);
|
||||
|
||||
Reference in New Issue
Block a user