From 8be233ccb29c148eafafdcf9765fe49ac6f51cd2 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 1 Jun 2021 17:29:42 +0200 Subject: [PATCH] sharedPage::exists() function cleanup --- lib/shared_memory.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index bdffc9da..272a132c 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -388,18 +388,13 @@ namespace IPC{ #ifdef SHM_ENABLED /// Returns true if the open file still exists. - /// \TODO Not implemented under Windows. bool sharedPage::exists(){ #if defined(__CYGWIN__) || defined(_WIN32) - return true; // Not implemented under Windows... + return true; // Not implemented under Windows: shared memory ALWAYS exists if open! #else -#ifdef SHM_ENABLED struct stat sb; if (fstat(handle, &sb)){return false;} return (sb.st_nlink > 0); -#else - return true; -#endif #endif }