1 Star 0 Fork 44

firstadream/lxc

forked from src-openEuler/lxc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0016-skip-kill-cgroup-processes-if-no-hierarchies.patch 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxiaoyu 提交于 2022-09-22 10:49 +08:00 . skip kill cgroup processes if no hierarchies
From 2aa9204b74c96413944a715408cfd5d2f3a34d66 Mon Sep 17 00:00:00 2001
From: isuladci <isulad@ci.com>
Date: Thu, 22 Sep 2022 10:44:26 +0800
Subject: [PATCH] skip kill cgroup processes if no hierarchies
Signed-off-by: isuladci <isulad@ci.com>
---
src/lxc/cgroups/isulad_cgfsng.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/lxc/cgroups/isulad_cgfsng.c b/src/lxc/cgroups/isulad_cgfsng.c
index 8a9656a..f5cf81c 100644
--- a/src/lxc/cgroups/isulad_cgfsng.c
+++ b/src/lxc/cgroups/isulad_cgfsng.c
@@ -677,15 +677,14 @@ __cgfsng_ops static bool isulad_cgfsng_payload_destroy(struct cgroup_ops *ops,
return false;
}
-#ifdef HAVE_ISULAD
if (ops->no_controller) {
- DEBUG("no controller found, isgnore isulad_cgfsng_payload_destroy");
+ DEBUG("no controller found, ignore isulad_cgfsng_payload_destroy");
return true;
}
-#endif
if (!ops->hierarchies) {
- return false;
+ DEBUG("no hierarchies found, ignore isulad_cgfsng_payload_destroy");
+ return true;
}
if (!handler) {
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/firstadream/lxc.git
git@gitee.com:firstadream/lxc.git
firstadream
lxc
lxc
master

搜索帮助

371d5123 14472233 46e8bd33 14472233