summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-processes.c
diff options
context:
space:
mode:
authorLassi Marttala <lassi.lm.marttala@partner.bmw.de>2012-05-30 11:56:22 +0200
committerChristian Muck <christian.muck@bmw.de>2012-06-13 23:52:40 +0200
commitbea4e475456745f444e2451415366d0e283f835c (patch)
treeb9a84d2fbf19784f1b33f5c59f5d664b3d8b8dc4 /src/system/dlt-system-processes.c
parentf8f80a07afd45d60c2975bfd7e4b859fb8c10a96 (diff)
downloadDLT-daemon-bea4e475456745f444e2451415366d0e283f835c.tar.gz
dlt-system: Logging of error conditions. Assert memory allocations.
dlt-system: logfile module would sometimes deadlock in the end of a file because of feof() reset in the end of the file. Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/system/dlt-system-processes.c')
-rw-r--r--src/system/dlt-system-processes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system/dlt-system-processes.c b/src/system/dlt-system-processes.c
index fd475b8..fc46c97 100644
--- a/src/system/dlt-system-processes.c
+++ b/src/system/dlt-system-processes.c
@@ -114,6 +114,11 @@ void send_process(LogProcessOptions popts, int n)
}
closedir(dir);
}
+ else
+ {
+ DLT_LOG(dltsystem, DLT_LOG_ERROR,
+ DLT_STRING("dlt-system-processes, failed to open /proc."));
+ }
if(!found) {
DLT_LOG(procContext, DLT_LOG_INFO, DLT_STRING("Process"), DLT_STRING(popts.Name[n]),DLT_STRING("not running!"));