automotive-dlt
dlt-system-process-handling.c File Reference
#include "dlt.h"
#include "dlt-system.h"
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/wait.h>
#include <pthread.h>
#include <limits.h>
Include dependency graph for dlt-system-process-handling.c:

Go to the source code of this file.

Functions

 DLT_IMPORT_CONTEXT (dltsystem)
 
void start_threads (DltSystemConfiguration *config)
 
void join_threads ()
 
void dlt_system_signal_handler (int sig)
 

Variables

volatile DltSystemThreads threads
 

Detailed Description

Author
Lassi Marttala lassi.nosp@m..lm..nosp@m.martt.nosp@m.ala@.nosp@m.partn.nosp@m.er.b.nosp@m.mw.de

Definition in file dlt-system-process-handling.c.

Function Documentation

DLT_IMPORT_CONTEXT ( dltsystem  )

Close all file descriptors and point stdin, stdout and stderr to /dev/null

Ignore signals related to child processes and terminal handling.

Definition at line 60 of file dlt-system-process-handling.c.

References DLT_LOG, DLT_LOG_DEBUG, and DLT_STRING.

void dlt_system_signal_handler ( int  sig)

Definition at line 182 of file dlt-system-process-handling.c.

References DLT_INT, DLT_LOG, DLT_LOG_DEBUG, DLT_LOG_WARN, and DLT_STRING.

Referenced by DLT_DECLARE_CONTEXT().

void join_threads ( )

Wait for threads to exit. There's not actually a condition currently to bail out of file transfer without a signal.

Definition at line 154 of file dlt-system-process-handling.c.

References DltSystemThreads::count, DLT_INT, DLT_LOG, DLT_LOG_DEBUG, DLT_STRING, NULL, and DltSystemThreads::threads.

Referenced by DLT_DECLARE_CONTEXT().

Variable Documentation

volatile DltSystemThreads threads

Definition at line 58 of file dlt-system-process-handling.c.

Referenced by logfile_thread(), and start_logfile().