1 Star 0 Fork 32

吴昌盛/gazelle-tar

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0180-add-the-suggestion-of-using-the-u-parameter-when-the.patch 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
From 224d243532c2ebcfd6a03df6d4e90208c9d1b3de Mon Sep 17 00:00:00 2001
From: kircher <majun65@huawei.com>
Date: Thu, 5 Jan 2023 19:39:39 +0800
Subject: [PATCH] add the suggestion of using the -u parameter when the
connection to unix socket fails
---
src/ltran/ltran_dfx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ltran/ltran_dfx.c b/src/ltran/ltran_dfx.c
index 53d1b47..1c9d4fa 100644
--- a/src/ltran/ltran_dfx.c
+++ b/src/ltran/ltran_dfx.c
@@ -198,6 +198,7 @@ static int32_t dfx_connect_ltran(bool use_ltran, bool probe)
if (ret == -1) {
if (!probe) {
printf("connect ltran failed. errno: %d ret=%d\n", errno, ret);
+ printf("You may need to use the -u parameter to specify the UNIX_PREFIX that matches the configuration.\n");
}
close(fd);
return GAZELLE_ERR;
@@ -1220,6 +1221,7 @@ static int32_t check_cmd_support(struct gazelle_stat_msg_request *req_msg, int32
}
/* keep output consistency */
printf("connect ltran failed. errno: 111 ret=-1\n");
+ printf("You may need to use the -u parameter to specify the UNIX_PREFIX that matches the configuration.\n");
return -1;
}
}
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wu-changsheng/gazelle-tar.git
git@gitee.com:wu-changsheng/gazelle-tar.git
wu-changsheng
gazelle-tar
gazelle-tar
master

搜索帮助