diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2014-10-15 19:27:14 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2014-10-15 19:27:14 +0000 |
| commit | 795b331312dc0af588d2ef4305575ec38ef22e97 (patch) | |
| tree | 25e8fc28f372d4ce5234120d78a3dd697dcabb73 /lib/libgeom | |
| parent | b645b3a0eb8e09b1eadba87de44255f95a3e3496 (diff) | |
Notes
Diffstat (limited to 'lib/libgeom')
| -rw-r--r-- | lib/libgeom/geom_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libgeom/geom_stats.c b/lib/libgeom/geom_stats.c index 14f9b222123c..48f71609a4b6 100644 --- a/lib/libgeom/geom_stats.c +++ b/lib/libgeom/geom_stats.c @@ -68,7 +68,7 @@ geom_stats_resync(void) return; for (;;) { p = mmap(statp, (npages + 1) * pagesize, - PROT_READ, 0, statsfd, 0); + PROT_READ, MAP_SHARED, statsfd, 0); if (p == MAP_FAILED) break; else @@ -90,7 +90,7 @@ geom_stats_open(void) return (errno); pagesize = getpagesize(); spp = pagesize / sizeof(struct devstat); - p = mmap(NULL, pagesize, PROT_READ, 0, statsfd, 0); + p = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, statsfd, 0); if (p == MAP_FAILED) { error = errno; close(statsfd); |
