Commit 20e13168 authored by Matthieu Dorier's avatar Matthieu Dorier

use MAP_SHARED instead of MAP_PRIVATE

parent b26ad8d8
......@@ -611,7 +611,7 @@ static void* custom_mmap_alloc(const char* filename, size_t size)
fclose(fptr);
int fd = open(filename, O_RDWR);
assert(fd);
void* addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_POPULATE, fd, 0);
void* addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, 0);
close(fd);
return addr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment