Blame SOURCES/0007-add-keep_going-check-to-prevent-irqbalance-from-fail.patch

9425f0
From 028082a6a1ff650d5cdf796ac55ac26a3874372a Mon Sep 17 00:00:00 2001
9425f0
From: Liu Chao <liuchao173@huawei.com>
9425f0
Date: Sat, 25 Jun 2022 14:13:10 +0800
9425f0
Subject: [PATCH 07/14] add keep_going check to prevent irqbalance from failing
9425f0
 to exit after SIGTERM
9425f0
9425f0
Signed-off-by: Liu Chao <liuchao173@huawei.com>
9425f0
---
9425f0
 irqbalance.c | 2 +-
9425f0
 1 file changed, 1 insertion(+), 1 deletion(-)
9425f0
9425f0
diff --git a/irqbalance.c b/irqbalance.c
9425f0
index c520c11..5eae5b6 100644
9425f0
--- a/irqbalance.c
9425f0
+++ b/irqbalance.c
9425f0
@@ -290,7 +290,7 @@ gboolean scan(gpointer data __attribute__((unused)))
9425f0
 
9425f0
 
9425f0
 	/* cope with cpu hotplug -- detected during /proc/interrupts parsing */
9425f0
-	while (need_rescan || need_rebuild) {
9425f0
+	while (keep_going && (need_rescan || need_rebuild)) {
9425f0
 		int try_times = 0;
9425f0
 
9425f0
 		need_rescan = 0;
9425f0
-- 
9425f0
2.33.1
9425f0