From f2fd10b0ab55ccb94248a98a972f36750741da25 Mon Sep 17 00:00:00 2001 From: Haibo Lin Date: Mon, 11 Jan 2021 09:58:26 +0800 Subject: [PATCH] React to SIGINT signal ODCS sends SIGINT signal. JIRA: RHELCMP-3687 Signed-off-by: Haibo Lin (cherry picked from commit f470599f6c804c06980ca43f32d3412e10b488e8) --- pungi/scripts/pungi_koji.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pungi/scripts/pungi_koji.py b/pungi/scripts/pungi_koji.py index 6131f27f..8c905565 100644 --- a/pungi/scripts/pungi_koji.py +++ b/pungi/scripts/pungi_koji.py @@ -615,6 +615,7 @@ def sigterm_handler(signum, frame): def cli_main(): + signal.signal(signal.SIGINT, sigterm_handler) signal.signal(signal.SIGTERM, sigterm_handler) try: