summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael-methner <mmethner@de.adit-jv.com>2023-04-26 11:04:44 +0200
committerGitHub <noreply@github.com>2023-04-26 11:04:44 +0200
commit07fe6557995682d3e7c99754f1f16d765c46a982 (patch)
tree16b6252abae73d9a35d5127b6defdc421ed8ee12 /src
parent0c1c75e8678e9dc7e0b76a3db1898a28100fcaf2 (diff)
downloadDLT-daemon-07fe6557995682d3e7c99754f1f16d765c46a982.tar.gz
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 <mmethner@de.adit-jv.com>
Diffstat (limited to 'src')
-rw-r--r--src/system/dlt-system-process-handling.c10
1 files changed, 1 insertions, 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
+}