From 7e4d4abd47c6b9b2af745c0a4c8b5532c1886399 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 25 Mar 2022 09:50:18 +0100 Subject: Don't call exit() from signal handler Coverity tool complains that exit() is not signal-safe and therefore should not be called from within a signal handler. Call _exit() instead. Signed-off-by: Phil Sutter --- src/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/run.c b/src/run.c index f11a532..37a0eb1 100644 --- a/src/run.c +++ b/src/run.c @@ -67,7 +67,7 @@ void killer(int signo) close_log(); sd_ct_stop(); - exit(0); + _exit(0); } static void child(int foo) -- cgit v1.2.3