修复共享内存判断标准

This commit is contained in:
gb 2022-09-26 17:52:52 +08:00
parent 7fd8983389
commit fb3251054d
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ std::string shared_memory::get_proc_name_by_pid(pid_t pid)
bool shared_memory::is_ok(void)
{
return obj_ != nullptr;
return obj_ != (void*)-1;
}
bool shared_memory::is_first(void)
{