diff --git a/src/common/memmap.cpp b/src/common/memmap.cpp index bcd73d262..10d38c068 100644 --- a/src/common/memmap.cpp +++ b/src/common/memmap.cpp @@ -644,7 +644,7 @@ void* MemMap::CreateSharedMemory(const char* name, size_t size, Error* error) } // we're not going to be opening this mapping in other processes, so remove the file - if (!is_anonymous) + if (is_anonymous) shm_unlink(name); #endif