From effc678316f48ec8bcb7cc415005f9e5906d897e Mon Sep 17 00:00:00 2001 From: Ingmar Stein Date: Wed, 3 Oct 2012 07:30:55 +0000 Subject: [PATCH] disable file cache --- Monolingual/helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Monolingual/helper.c b/Monolingual/helper.c index 4e83c5b7..d7c900cd 100644 --- a/Monolingual/helper.c +++ b/Monolingual/helper.c @@ -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) {