Skip to content

Commit

Permalink
disable file cache
Browse files Browse the repository at this point in the history
  • Loading branch information
IngmarStein committed Oct 3, 2012
1 parent 7a935d3 commit effc678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Monolingual/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ static int has_code_signature(const char *path)
return -1;
}
size = (size_t)stat_buf.st_size;
fcntl(fd, F_NOCACHE, 1);

addr = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
if (MAP_FAILED == addr) {
Expand Down

0 comments on commit effc678

Please sign in to comment.