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

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