From 95d4a71d8974c9b6e30cf886ecc16d30657b94dc Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 23 Sep 2008 20:34:45 +0000 Subject: [PATCH] Rather use MAP_PRIVATE instead of MAP_SHARED. It doesn't make a difference ATM, but will, when we change the semantics of MAP_PRIVATE to imply MAP_COPY. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27714 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/debug/SymbolLookup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/debug/SymbolLookup.cpp b/src/kits/debug/SymbolLookup.cpp index 7e1ed4068f..ebbad38f1e 100644 --- a/src/kits/debug/SymbolLookup.cpp +++ b/src/kits/debug/SymbolLookup.cpp @@ -238,7 +238,7 @@ ImageFile::Load() return B_NOT_AN_EXECUTABLE; // map it - fMappedFile = (uint8*)mmap(NULL, fFileSize, PROT_READ, MAP_SHARED, fFD, 0); + fMappedFile = (uint8*)mmap(NULL, fFileSize, PROT_READ, MAP_PRIVATE, fFD, 0); if (fMappedFile == MAP_FAILED) return errno;