summaryrefslogtreecommitdiff
path: root/ace/Mem_Map.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-21 05:44:04 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-21 05:44:04 +0000
commit4a93642a9c3d6ba6dcff6f4cc2fcc7bcfe227b8e (patch)
treeece1b872812f63d85b7077cef668d00902bdbefa /ace/Mem_Map.cpp
parent88973dbf41a6ba0899f60e133e63e0d12a1ec497 (diff)
downloadATCD-4a93642a9c3d6ba6dcff6f4cc2fcc7bcfe227b8e.tar.gz
On LynxOS, write back the shared object to the plain file, if the mmap protection included PROT_WRITE
Diffstat (limited to 'ace/Mem_Map.cpp')
-rw-r--r--ace/Mem_Map.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ace/Mem_Map.cpp b/ace/Mem_Map.cpp
index de2be32cdf1..9f9763f6936 100644
--- a/ace/Mem_Map.cpp
+++ b/ace/Mem_Map.cpp
@@ -98,6 +98,11 @@ ACE_Mem_Map::map_it (ACE_HANDLE handle,
return -1;
}
+#if defined (__Lynx__)
+ // Set flag that indicates whether PROT_WRITE has been enabled.
+ write_enabled_ = prot & PROT_WRITE ? 1 : 0;
+#endif /* __Lynx__ */
+
this->base_addr_ = ACE_OS::mmap (this->base_addr_,
this->length_,
prot,