Common: Use more portable invocation of shm_open
This commit is contained in:
parent
7085fcc8d6
commit
b6d1512587
|
@ -63,7 +63,7 @@ void MemArena::GrabSHMSegment(size_t size)
|
|||
#else
|
||||
for (int i = 0; i < 10000; i++)
|
||||
{
|
||||
std::string file_name = StringFromFormat("dolphinmem.%d", i);
|
||||
std::string file_name = StringFromFormat("/dolphinmem.%d", i);
|
||||
fd = shm_open(file_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0600);
|
||||
if (fd != -1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue