40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From 6b489d5555a2d28c37bb64f995962239f4e91624 Mon Sep 17 00:00:00 2001
|
|
From: yinbin <yinbin8@huawei.com>
|
|
Date: Tue, 8 Oct 2024 20:25:34 +0800
|
|
Subject: [PATCH] bugfix: fix gazelle init failed while setup by non-root user
|
|
|
|
---
|
|
src/lstack/core/lstack_init.c | 3 +--
|
|
src/lstack/include/lstack_log.h | 1 +
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/lstack/core/lstack_init.c b/src/lstack/core/lstack_init.c
|
|
index 53e25b4..a72af84 100644
|
|
--- a/src/lstack/core/lstack_init.c
|
|
+++ b/src/lstack/core/lstack_init.c
|
|
@@ -257,8 +257,7 @@ __attribute__((constructor)) void gazelle_network_init(void)
|
|
wrap_api_init();
|
|
|
|
if (set_rlimit_unlimited() != 0) {
|
|
- LSTACK_PRE_LOG(LSTACK_INFO, "set rlimit unlimited failed\n");
|
|
- LSTACK_EXIT(1, "set rlimit unlimited failed\n");
|
|
+ LSTACK_PRE_LOG(LSTACK_WARNING, "set rlimit unlimited failed. errno=%d\n", errno);
|
|
}
|
|
|
|
/* check primary process start */
|
|
diff --git a/src/lstack/include/lstack_log.h b/src/lstack/include/lstack_log.h
|
|
index e4bed37..a48e02f 100644
|
|
--- a/src/lstack/include/lstack_log.h
|
|
+++ b/src/lstack/include/lstack_log.h
|
|
@@ -23,6 +23,7 @@
|
|
|
|
#define LSTACK_INFO LOG_INFO
|
|
#define LSTACK_ERR LOG_ERR
|
|
+#define LSTACK_WARNING LOG_WARNING
|
|
|
|
/* before rte_eal_init */
|
|
#define LSTACK_PRE_LOG(level, fmt, ...) \
|
|
--
|
|
2.33.0
|
|
|