Improvements to connector shutdown code, attempted fix for Windows support.

This commit is contained in:
Thulinma 2015-04-16 13:18:52 +02:00
parent 2e052fa2a1
commit d120523bbb
2 changed files with 7 additions and 3 deletions

View file

@ -293,7 +293,7 @@ namespace IPC {
#ifdef __CYGWIN__
if (master) {
//Under cygwin, all pages are 4 bytes longer than claimed.
handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, name.c_str());
handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, std::string("Global\\" + name).c_str());
} else {
int i = 0;
do {