From 35bee008028ddc2bef0bb9dc4de6c4e1dd55bd92 Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 30 Aug 2016 21:43:25 +0800 Subject: [PATCH] env_universal_common: drop MAP_FILE flag MAP_FILE is unspecified or ignored on Linux, Solaris, FreeBSD and Haiku; it is the default on OS X. Work on #3317 & #3340. --- src/env_universal_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp index 4550e7462..862742c85 100644 --- a/src/env_universal_common.cpp +++ b/src/env_universal_common.cpp @@ -1043,7 +1043,7 @@ class universal_notifier_shmem_poller_t : public universal_notifier_t { // Memory map the region. if (!errored) { void *addr = mmap(NULL, sizeof(universal_notifier_shmem_t), PROT_READ | PROT_WRITE, - MAP_FILE | MAP_SHARED, fd, 0); + MAP_SHARED, fd, 0); if (addr == MAP_FAILED) { int err = errno; report_error(err, L"Unable to memory map shared memory object with path '%s'",