Removed MS_INVALIDATE flags

This commit is contained in:
Andrew M. Kuchling 2000-06-18 04:25:08 +00:00
parent 0adfb45b9a
commit 9bc5f3339a
1 changed files with 2 additions and 2 deletions

View File

@ -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;