diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2014-09-17 19:37:58 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2014-09-17 19:37:58 +0000 |
| commit | 2c2cd2c14c7f12e28f2d628c8285ca428d8454b5 (patch) | |
| tree | 2b8b401d86b54be5ec4936f762d9dc69632c8b56 /lib | |
| parent | 5e93a4b46be72a40da3b46f50b698bb6b977527f (diff) | |
Notes
Diffstat (limited to 'lib')
| -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 14f9b222123c8..48f71609a4b67 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); |
