mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #2643: msync() is not called anymore when deallocating an open mmap
object, only munmap().
This commit is contained in:
parent
e31f7d9e2e
commit
52d42503d5
2 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,6 @@ mmap_object_dealloc(mmap_object *m_obj)
|
|||
if (m_obj->fd >= 0)
|
||||
(void) close(m_obj->fd);
|
||||
if (m_obj->data!=NULL) {
|
||||
msync(m_obj->data, m_obj->size, MS_SYNC);
|
||||
munmap(m_obj->data, m_obj->size);
|
||||
}
|
||||
#endif /* UNIX */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue