From 12ffad2d478576e75c558efd92c6733a38cc3b92 Mon Sep 17 00:00:00 2001 From: Michael Methner Date: Mon, 24 Apr 2023 16:56:02 +0200 Subject: Remove use of DLT_LOG in signal handler DLT_LOG is using internally function which are not async-signal safe (like calloc, vsnprintf). Therefore, it needs to be removed from the signal handler Signed-off-by: Michael Methner --- src/system/dlt-system-process-handling.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/system/dlt-system-process-handling.c b/src/system/dlt-system-process-handling.c index 84259cc..9180680 100644 --- a/src/system/dlt-system-process-handling.c +++ b/src/system/dlt-system-process-handling.c @@ -312,22 +312,14 @@ void start_dlt_system_processes(DltSystemConfiguration *config) void dlt_system_signal_handler(int sig) { - DLT_LOG(dltsystem, DLT_LOG_DEBUG, - DLT_STRING("dlt-system-process-handling, signal handler")); - switch (sig) { case SIGHUP: case SIGTERM: case SIGINT: case SIGQUIT: - DLT_LOG(dltsystem, DLT_LOG_DEBUG, - DLT_STRING("dlt-system-process-handling, exit, signal: "), - DLT_INT(sig)); quit = 1; break; default: - DLT_LOG(dltsystem, DLT_LOG_WARN, - DLT_STRING("dlt-system-process-handling, unknown signal!")); break; } -} \ No newline at end of file +} -- cgit v1.2.1