Fixed warnings printed by shared file code to be in line with shared memory warnings.
This commit is contained in:
parent
17d12117d9
commit
a4dc6c3944
1 changed files with 2 additions and 2 deletions
|
@ -571,12 +571,12 @@ namespace IPC {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (handle == -1) {
|
if (handle == -1) {
|
||||||
perror(std::string("open for file " + name + " failed").c_str());
|
HIGH_MSG("shf_open for page %s failed: %s", name.c_str(), strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (master) {
|
if (master) {
|
||||||
if (ftruncate(handle, len) < 0) {
|
if (ftruncate(handle, len) < 0) {
|
||||||
perror(std::string("ftruncate to len for file " + name + " failed").c_str());
|
INFO_MSG("ftruncate to len for shf page %s failed: %s", name.c_str(), strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue