diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-06-18 04:25:08 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-06-18 04:25:08 (GMT) |
commit | 9bc5f3339ad175e4dedb312fa2c5faecbbb8bfee (patch) | |
tree | 084542ba872a87f64823675786e40b4da1700e52 /Modules/mmapmodule.c | |
parent | 0adfb45b9a2c892d4db211002b7c420790fa7e09 (diff) | |
download | cpython-9bc5f3339ad175e4dedb312fa2c5faecbbb8bfee.zip cpython-9bc5f3339ad175e4dedb312fa2c5faecbbb8bfee.tar.gz cpython-9bc5f3339ad175e4dedb312fa2c5faecbbb8bfee.tar.bz2 |
Removed MS_INVALIDATE flags
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r-- | Modules/mmapmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 4bfcb21..08ba085 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; |