More debugging.
This commit is contained in:
parent
ef26df5e38
commit
f20f1607c6
1 changed files with 2 additions and 1 deletions
|
@ -289,8 +289,8 @@ namespace IPC {
|
||||||
len = len_;
|
len = len_;
|
||||||
master = master_;
|
master = master_;
|
||||||
mapped = 0;
|
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()) {
|
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__
|
#ifdef __CYGWIN__
|
||||||
if (master) {
|
if (master) {
|
||||||
//Under cygwin, all pages are 4 bytes longer than claimed.
|
//Under cygwin, all pages are 4 bytes longer than claimed.
|
||||||
|
@ -422,6 +422,7 @@ namespace IPC {
|
||||||
void sharedFile::close() {
|
void sharedFile::close() {
|
||||||
unmap();
|
unmap();
|
||||||
if (handle > 0) {
|
if (handle > 0) {
|
||||||
|
INSANE_MSG("Closing page %s in %s mode", name.c_str(), master?"master":"client");
|
||||||
::close(handle);
|
::close(handle);
|
||||||
if (master && name != "") {
|
if (master && name != "") {
|
||||||
unlink(name.c_str());
|
unlink(name.c_str());
|
||||||
|
|
Loading…
Add table
Reference in a new issue