Blame SOURCES/0014-Don-t-call-exit-from-signal-handler.patch

d202f6
From 6441d719c562135db1a41ff34a28f9edf8caf0fb Mon Sep 17 00:00:00 2001
d202f6
From: Phil Sutter <phil@nwl.cc>
d202f6
Date: Fri, 25 Mar 2022 09:50:18 +0100
d202f6
Subject: [PATCH] Don't call exit() from signal handler
d202f6
d202f6
Coverity tool complains that exit() is not signal-safe and therefore
d202f6
should not be called from within a signal handler. Call _exit() instead.
d202f6
d202f6
Signed-off-by: Phil Sutter <phil@nwl.cc>
d202f6
(cherry picked from commit 7e4d4abd47c6b9b2af745c0a4c8b5532c1886399)
d202f6
---
d202f6
 src/run.c | 2 +-
d202f6
 1 file changed, 1 insertion(+), 1 deletion(-)
d202f6
d202f6
diff --git a/src/run.c b/src/run.c
d202f6
index f11a5327fe5e6..37a0eb1c6b957 100644
d202f6
--- a/src/run.c
d202f6
+++ b/src/run.c
d202f6
@@ -67,7 +67,7 @@ void killer(int signo)
d202f6
 	close_log();
d202f6
 
d202f6
 	sd_ct_stop();
d202f6
-	exit(0);
d202f6
+	_exit(0);
d202f6
 }
d202f6
 
d202f6
 static void child(int foo)
d202f6
-- 
d202f6
2.34.1
d202f6