sync add the suggestion of using the -u parameter when the connection to unix socket fails
(cherry picked from commit 261b5d0aeb89d03b839d97d26d7741d6b5ff5955)
This commit is contained in:
parent
bccc519d93
commit
867d8d1200
@ -0,0 +1,33 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: gazelle
|
Name: gazelle
|
||||||
Version: 1.0.1
|
Version: 1.0.1
|
||||||
Release: 45
|
Release: 46
|
||||||
Summary: gazelle is a high performance user-mode stack
|
Summary: gazelle is a high performance user-mode stack
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
URL: https://gitee.com/openeuler/gazelle
|
URL: https://gitee.com/openeuler/gazelle
|
||||||
@ -199,6 +199,7 @@ Patch9181: 0181-pbuf-align-cache-line.patch
|
|||||||
Patch9182: 0182-support-set-main-thread-affinity.patch
|
Patch9182: 0182-support-set-main-thread-affinity.patch
|
||||||
Patch9183: 0183-reduce-epoll-wakeup.patch
|
Patch9183: 0183-reduce-epoll-wakeup.patch
|
||||||
Patch9184: 0184-revert-expand-recv-data-buff.patch
|
Patch9184: 0184-revert-expand-recv-data-buff.patch
|
||||||
|
Patch9185: 0185-add-the-suggestion-of-using-the-u-parameter-when-the.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} is a high performance user-mode stack.
|
%{name} is a high performance user-mode stack.
|
||||||
@ -239,6 +240,9 @@ install -Dpm 0640 %{_builddir}/%{name}-%{version}/src/ltran/ltran.conf %{b
|
|||||||
%config(noreplace) %{conf_path}/ltran.conf
|
%config(noreplace) %{conf_path}/ltran.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 6 2023 kircher <majun65@huawei.com> - 1.0.1-46
|
||||||
|
- add the suggestion of using the -u parameter when the connection to unix socket fails
|
||||||
|
|
||||||
* Fri Dec 30 2022 wuchangsheng <wuchangsheng2@huawei.com> - 1.0.1-45
|
* Fri Dec 30 2022 wuchangsheng <wuchangsheng2@huawei.com> - 1.0.1-45
|
||||||
- revert expand recv data buff
|
- revert expand recv data buff
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user