diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-25 09:50:18 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-28 12:19:44 +0200 |
commit | 7e4d4abd47c6b9b2af745c0a4c8b5532c1886399 (patch) | |
tree | 0ebb2e482a8d92d132ac9a811a8b743c4c1240ac /src | |
parent | f2fed05adbd05df23a063e0a9f2809399d924c64 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ void killer(int signo) close_log(); sd_ct_stop(); - exit(0); + _exit(0); } static void child(int foo) |