Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-09-18 21:10:09 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-09-18 21:10:09 +0400
commit7cffc3456406049fb3b87698d5725a041711eaa0 (patch)
treeb72c4465d2e625cbe0904b6dae96bed76112021a /winsup/cygwin/mmap.cc
parentb244a689092352255c5672a25514e8da8513267e (diff)
* mmap.cc (mmap): Don't reuse anonymous memory in MAP_FIXED case.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index b88deb872..89ef69b27 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -503,7 +503,7 @@ mmap (caddr_t addr, size_t len, int prot, int flags, int fd, off_t off)
/* First check if this mapping matches into the chunk of another
already performed mapping. Only valid for MAP_ANON in a special
case of MAP_PRIVATE. */
- if (l && fd == -1 && off == 0)
+ if (l && fd == -1 && off == 0 && !(flags & MAP_FIXED))
{
mmap_record *rec;
if ((rec = l->match (off, len)) != NULL)