summaryrefslogtreecommitdiffstats
path: root/monitor_mm.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-25 03:22:03 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-25 03:22:03 +0000
commit6b0c96ab590be0af4b04421666a3b465737c16cb (patch)
tree93f177c78c89a5b23b6d7b146014cabe1b3f2a24 /monitor_mm.c
parentaa83b984ca60f59aff8eb32da7dfe210c8a55d82 (diff)
- (bal) if mmap() is substandard, don't allow compression on server side.
Post 'event' we will add more options.
Diffstat (limited to 'monitor_mm.c')
-rw-r--r--monitor_mm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/monitor_mm.c b/monitor_mm.c
index 0076c421..c7662d80 100644
--- a/monitor_mm.c
+++ b/monitor_mm.c
@@ -84,13 +84,11 @@ mm_create(struct mm_master *mmalloc, size_t size)
*/
mm->mmalloc = mmalloc;
-#if defined(HAVE_MMAP) && defined(MAP_ANON)
+#ifdef HAVE_MMAP_ANON_SHARED
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
-1, 0);
- if (address == MAP_FAILED)
- fatal("mmap(%lu): %s", (u_long)size, strerror(errno));
#else
- fatal("%s: UsePrivilegeSeparation=yes not supported",
+ fatal("%s: UsePrivilegeSeparation=yes and Compression=yes not supported",
__func__);
#endif