diff options
| -rw-r--r-- | cbits/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cbits/mmap.c b/cbits/mmap.c index d84fa59..69aeace 100644 --- a/cbits/mmap.c +++ b/cbits/mmap.c @@ -10,7 +10,7 @@ void* tirclogv_mmap(int fd, size_t *lengthp) { perror("stat"); return NULL; } - void *addr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0); + void *addr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); if (addr == NULL) { perror("mmap"); } |
