From: Pierre-Nicolas Clauss Date: Wed, 8 Jun 2011 19:57:31 +0000 (+0200) Subject: Use private mapping (we already have early unlinking). X-Git-Tag: exp_20120216~195^2~43 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b3f59725051f14d38fc6d9f63474bda6c207830e?hp=453ff30e808b8aa38d9b0a6db090981cd37b6605 Use private mapping (we already have early unlinking). --- diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index e91f9c7482..88c0aa68c6 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -91,7 +91,7 @@ static void* shm_map(int fd, size_t size, shared_data_t* data) { xbt_die("Could not truncate fd %d to %zu: %s", fd, size, strerror(errno)); } } - mem = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + mem = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); if(mem == MAP_FAILED) { xbt_die("Could not map fd %d: %s", fd, strerror(errno)); }