Commit 52d42503 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #2643: msync() is not called anymore when deallocating an open mmap

object, only munmap().
parent e31f7d9e
...@@ -58,6 +58,9 @@ Core and Builtins ...@@ -58,6 +58,9 @@ Core and Builtins
Library Library
------- -------
- Issue #2643: msync() is not called anymore when deallocating an open mmap
object, only munmap().
- logging: Changed LoggerAdapter implementation internally, to make it - logging: Changed LoggerAdapter implementation internally, to make it
easier to subclass in a useful way. easier to subclass in a useful way.
......
...@@ -125,7 +125,6 @@ mmap_object_dealloc(mmap_object *m_obj) ...@@ -125,7 +125,6 @@ mmap_object_dealloc(mmap_object *m_obj)
if (m_obj->fd >= 0) if (m_obj->fd >= 0)
(void) close(m_obj->fd); (void) close(m_obj->fd);
if (m_obj->data!=NULL) { if (m_obj->data!=NULL) {
msync(m_obj->data, m_obj->size, MS_SYNC);
munmap(m_obj->data, m_obj->size); munmap(m_obj->data, m_obj->size);
} }
#endif /* UNIX */ #endif /* UNIX */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment