diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-03-25 13:24:52 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-04-01 09:46:43 +0200 |
commit | 20136d1af7dbf1d619499cc27e1c75e05368f3b6 (patch) | |
tree | 3cbd64d2cc9c8a14e772687a43f2c25619a224a6 /src/lib/dlt_user.c | |
parent | 29e4f99d6db73e01e050726f1451b2d5f0281b7e (diff) | |
download | DLT-daemon-20136d1af7dbf1d619499cc27e1c75e05368f3b6.tar.gz |
Cygwin port: cygwin patch, signal handling patch and cppcheck and install lib dll to correct location on Windows. Originally from Mikko Rapeli <mikko.rapeli@bmw.de>.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r-- | src/lib/dlt_user.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index c3eb29d..3b23378 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -83,7 +83,9 @@ #include <sys/uio.h> /* writev() */ #include <limits.h> +#ifdef linux #include <sys/prctl.h> +#endif #include "dlt_user.h" #include "dlt_user_shared.h" @@ -2214,8 +2216,9 @@ void dlt_user_trace_network_segmented_thread(void *unused) { /* Unused on purpose. */ (void) unused; - +#ifdef linux prctl(PR_SET_NAME, "dlt_segmented", 0, 0, 0); +#endif s_segmented_data *data; @@ -2751,7 +2754,9 @@ int dlt_disable_local_print(void) void dlt_user_receiverthread_function(__attribute__((unused)) void *ptr) { +#ifdef linux prctl(PR_SET_NAME, "dlt_receiver", 0, 0, 0); +#endif while (1) { /* Check for new messages from DLT daemon */ |