summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-options.c
diff options
context:
space:
mode:
authorBiastoch, Darian (ADITG/ESM) <dbiastoch@de.adit-jv.com>2021-07-16 00:29:10 +0000
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-10-05 11:19:26 +0900
commit50a385e6afea50922569828438194477537a768b (patch)
tree120995ed2095145b31caf2958ddd259ced88786d /src/system/dlt-system-options.c
parent0ee7fdff3d6bb2f2055e7083fa48728f4d274661 (diff)
downloadDLT-daemon-50a385e6afea50922569828438194477537a768b.tar.gz
system: use signalfd for dlt-system
1: Move the call of pthread_sigmask in dlt-qnx-systems main before DLT_REGISTER_APP, because this already spawns a thread, what was done without applying pthread_sigmask before. 2: Replaced all threads in dlt-system, that are spawned for each feature, through one poll. This poll waits for a file descriptor event, that triggers the feature routine, that was executed before in the thread. Done this for following processes: * reading syslog and journal * frequently reading logfile and logprocess * triggering filetransfer, if a file was added/changed in watched directory * checking watchdog timer of systemd service file with defined intervall Signed-off-by: dbiastoch <dbiastoch@de.adit-jv.com>
Diffstat (limited to 'src/system/dlt-system-options.c')
-rw-r--r--src/system/dlt-system-options.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/system/dlt-system-options.c b/src/system/dlt-system-options.c
index 5fa31cb..89a9196 100644
--- a/src/system/dlt-system-options.c
+++ b/src/system/dlt-system-options.c
@@ -153,7 +153,6 @@ void init_configuration(DltSystemConfiguration *config)
/* File transfer */
config->Filetransfer.Enable = 0;
config->Filetransfer.ContextId = "FILE";
- config->Filetransfer.TimeDelay = 10;
config->Filetransfer.TimeStartup = 30;
config->Filetransfer.TimeoutBetweenLogs = 10;
config->Filetransfer.Count = 0;
@@ -310,10 +309,6 @@ int read_configuration_file(DltSystemConfiguration *config, char *file_name)
{
config->Filetransfer.TimeStartup = atoi(value);
}
- else if (strcmp(token, "FiletransferTimeDelay") == 0)
- {
- config->Filetransfer.TimeDelay = atoi(value);
- }
else if (strcmp(token, "FiletransferTimeoutBetweenLogs") == 0)
{
config->Filetransfer.TimeoutBetweenLogs = atoi(value);