From 4e3c631b709d178c7df1634f401f087dcd604071 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Wed, 26 Jun 2002 00:29:02 +0000 Subject: [PATCH] - (bal) fixed NeXTStep missing munmap() issue. It defines HAVE_MMAP, but it all damned lies. --- ChangeLog | 4 +++- monitor_mm.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 54e7d95c0..2b7bfd0d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,8 @@ - (bal) added back in error check for mmap(). I screwed up, Pointed out by stevesk@ - (tim) [README.privsep] UnixWare tip no longer needed. + - (bal) fixed NeXTStep missing munmap() issue. It defines HAVE_MMAP, + but it all damned lies. 20020625 - (stevesk) [INSTALL acconfig.h configure.ac defines.h] remove --with-rsh @@ -1129,4 +1131,4 @@ - (stevesk) entropy.c: typo in debug message - (djm) ssh-keygen -i needs seeded RNG; report from markus@ -$Id: ChangeLog,v 1.2285 2002/06/26 00:25:47 tim Exp $ +$Id: ChangeLog,v 1.2286 2002/06/26 00:29:02 mouring Exp $ diff --git a/monitor_mm.c b/monitor_mm.c index ab4d5c957..c363036e6 100644 --- a/monitor_mm.c +++ b/monitor_mm.c @@ -130,12 +130,12 @@ mm_destroy(struct mm_master *mm) mm_freelist(mm->mmalloc, &mm->rb_free); mm_freelist(mm->mmalloc, &mm->rb_allocated); -#ifdef HAVE_MMAP +#ifdef HAVE_MMAP_ANON_SHARED if (munmap(mm->address, mm->size) == -1) fatal("munmap(%p, %lu): %s", mm->address, (u_long)mm->size, strerror(errno)); #else - fatal("%s: UsePrivilegeSeparation=yes not supported", + fatal("%s: UsePrivilegeSeparation=yes and Compression=yes not supported", __func__); #endif if (mm->mmalloc == NULL)