diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-03 16:20:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-03 17:16:59 +0100 |
commit | 1284ea867254229e008d2b7bfea37194334036f5 (patch) | |
tree | a80480a32bc0a903672e0745a36131626fd01eb6 /compat/compat.cpp | |
parent | 4be56b29b1480457b64298ea2e1e7a01a4943adb (diff) |
compat: specify MAP_ANON
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'compat/compat.cpp')
-rw-r--r-- | compat/compat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/compat.cpp b/compat/compat.cpp index 808a8645..1b530890 100644 --- a/compat/compat.cpp +++ b/compat/compat.cpp @@ -56,7 +56,7 @@ PortableLockedShm::PortableLockedShm(const char *shmName, const char* /*mutexNam fd = shm_open(shm_filename, O_RDWR | O_CREAT, 0600); if (ftruncate(fd, mapSize) == 0) - mem = mmap(NULL, mapSize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, (off_t)0); + mem = mmap(NULL, mapSize, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, fd, (off_t)0); else mem = (void*) -1; } @@ -88,4 +88,4 @@ bool PortableLockedShm::success() #else return (void*) mem != NULL; #endif -}
\ No newline at end of file +} |