From f20f1607c6a8d1d842062b8637ab38185cc36aa4 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 16 Apr 2015 15:01:41 +0200 Subject: [PATCH] More debugging. --- lib/shared_memory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index 04105898..de2ccef0 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -289,8 +289,8 @@ namespace IPC { len = len_; master = master_; mapped = 0; - INSANE_MSG("Opening page %s in %s mode %s auto-backoff", name.c_str(), master?"master":"client", autoBackoff?"with":"without"); if (name.size()) { + INSANE_MSG("Opening page %s in %s mode %s auto-backoff", name.c_str(), master?"master":"client", autoBackoff?"with":"without"); #ifdef __CYGWIN__ if (master) { //Under cygwin, all pages are 4 bytes longer than claimed. @@ -422,6 +422,7 @@ namespace IPC { void sharedFile::close() { unmap(); if (handle > 0) { + INSANE_MSG("Closing page %s in %s mode", name.c_str(), master?"master":"client"); ::close(handle); if (master && name != "") { unlink(name.c_str());