From 07fe6557995682d3e7c99754f1f16d765c46a982 Mon Sep 17 00:00:00 2001 From: michael-methner Date: Wed, 26 Apr 2023 11:04:44 +0200 Subject: Remove use of DLT_LOG in signal handler (#472) 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(-) (limited to 'src') 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