提交 e3dc87cd 编写于 作者: Z zhong_ning

fix hilog bug

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 f93d708f
......@@ -59,7 +59,7 @@ static int CreateSocket(ServiceSocket *sockopt)
do {
ret = -1;
if (access(addr.sun_path, F_OK)) {
if (access(addr.sun_path, F_OK) == 0) {
INIT_LOGI("%s already exist, remove it", addr.sun_path);
unlink(addr.sun_path);
}
......@@ -146,4 +146,4 @@ void CloseServiceSocket(ServiceSocket *sockopt)
tmpSock = tmpSock->next;
}
return;
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册