From 55038d931863a1c44794a7df4c8badbecfb382c7 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Fri, 17 Jun 2005 21:52:58 +0000 Subject: [PATCH] r7703: Fix the problem with MAP_PRIVATE not updating the file. --- source/utils/profiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/profiles.c b/source/utils/profiles.c index 5b5cb7f07b2..0830d6b74b0 100644 --- a/source/utils/profiles.c +++ b/source/utils/profiles.c @@ -610,7 +610,7 @@ int main(int argc, char *argv[]) */ #ifdef HAVE_MMAP - base = mmap(NULL, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); + base = mmap(NULL, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); #else base = (char *)-1; errno = ENOSYS;