summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Methner <mmethner@de.adit-jv.com>2023-04-24 16:56:02 +0200
committerMichael Methner <mmethner@de.adit-jv.com>2023-04-24 16:56:02 +0200
commit12ffad2d478576e75c558efd92c6733a38cc3b92 (patch)
tree16b6252abae73d9a35d5127b6defdc421ed8ee12
parent0c1c75e8678e9dc7e0b76a3db1898a28100fcaf2 (diff)
downloadDLT-daemon-dlt_system_async_signal_safe.tar.gz
Remove use of DLT_LOG in signal handlerdlt_system_async_signal_safe
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>
-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
+}