summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-03-25 09:50:18 +0100
committerPhil Sutter <phil@nwl.cc>2022-03-28 12:19:44 +0200
commit7e4d4abd47c6b9b2af745c0a4c8b5532c1886399 (patch)
tree0ebb2e482a8d92d132ac9a811a8b743c4c1240ac /src
parentf2fed05adbd05df23a063e0a9f2809399d924c64 (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'src')
-rw-r--r--src/run.c2
1 files changed, 1 insertions, 1 deletions
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)