summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/dlt-system-watchdog.c')
-rw-r--r--src/system/dlt-system-watchdog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/system/dlt-system-watchdog.c b/src/system/dlt-system-watchdog.c
index 5eef59b..a45ef30 100644
--- a/src/system/dlt-system-watchdog.c
+++ b/src/system/dlt-system-watchdog.c
@@ -66,7 +66,11 @@ void wait_period (PeriodicData *info)
{
unsigned long long missed;
- read (info->timer_fd, &missed, sizeof (missed));
+ if(read (info->timer_fd, &missed, sizeof (missed)) < 0)
+ {
+ DLT_LOG(watchdogContext, DLT_LOG_ERROR,
+ DLT_STRING("Could not read from timer file descriptor in watchdog.\n"));
+ }
if (missed > 0)
{