mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 08:46:45 +08:00
Fix ut
This commit is contained in:
parent
e1f377d7f6
commit
acea9d74da
@ -90,7 +90,7 @@ inline static thread_pool & reader() {
|
|||||||
|
|
||||||
#ifdef IPC_OS_LINUX_
|
#ifdef IPC_OS_LINUX_
|
||||||
inline bool check_exist(char const *name) noexcept {
|
inline bool check_exist(char const *name) noexcept {
|
||||||
int fd = ::open((std::string{"/dev/shm/__IPC_SHM__"} + name).c_str(), O_RDONLY);
|
int fd = ::open((std::string{"/dev/shm/"} + name).c_str(), O_RDONLY);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user