mirror of https://github.com/openXC7/prjxray.git
remove MAP_POPULATE
Signed-off-by: Dusty DeWeese <dustin.deweese@gmail.com>
This commit is contained in:
parent
8f73f7899c
commit
90be7e4204
|
|
@ -38,8 +38,8 @@ std::unique_ptr<MemoryMappedFile> MemoryMappedFile::InitWithFile(
|
|||
new MemoryMappedFile(nullptr, 0));
|
||||
}
|
||||
|
||||
void* file_map = mmap(NULL, statbuf.st_size, PROT_READ,
|
||||
MAP_PRIVATE | MAP_POPULATE, fd, 0);
|
||||
void* file_map =
|
||||
mmap(NULL, statbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
||||
|
||||
// If mmap() succeeded, the fd is no longer needed as the mapping will
|
||||
// keep the file open. If mmap() failed, the fd needs to be closed
|
||||
|
|
|
|||
Loading…
Reference in New Issue