From 9bc5f3339ad175e4dedb312fa2c5faecbbb8bfee Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sun, 18 Jun 2000 04:25:08 +0000 Subject: [PATCH] Removed MS_INVALIDATE flags --- Modules/mmapmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 4bfcb21889..08ba085a0d 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -65,7 +65,7 @@ mmap_object_dealloc(mmap_object * m_obj) #ifdef UNIX if (m_obj->data!=NULL) { - msync(m_obj->data, m_obj->size, MS_SYNC | MS_INVALIDATE); + msync(m_obj->data, m_obj->size, MS_SYNC); munmap(m_obj->data, m_obj->size); } #endif /* UNIX */ @@ -388,7 +388,7 @@ mmap_flush_method (mmap_object * self, PyObject * args) /* XXX semantics of return value? */ /* XXX flags for msync? */ if (-1 == msync(self->data + offset, size, - MS_SYNC | MS_INVALIDATE)) + MS_SYNC)) { PyErr_SetFromErrno(mmap_module_error); return NULL; -- 2.40.0