修复共享内存判断标准
This commit is contained in:
parent
7fd8983389
commit
fb3251054d
|
@ -320,7 +320,7 @@ std::string shared_memory::get_proc_name_by_pid(pid_t pid)
|
||||||
|
|
||||||
bool shared_memory::is_ok(void)
|
bool shared_memory::is_ok(void)
|
||||||
{
|
{
|
||||||
return obj_ != nullptr;
|
return obj_ != (void*)-1;
|
||||||
}
|
}
|
||||||
bool shared_memory::is_first(void)
|
bool shared_memory::is_first(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue