summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src/CAmWatchdog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDaemon/src/CAmWatchdog.cpp')
-rwxr-xr-xAudioManagerDaemon/src/CAmWatchdog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/AudioManagerDaemon/src/CAmWatchdog.cpp b/AudioManagerDaemon/src/CAmWatchdog.cpp
index 61e0624..15c7dcc 100755
--- a/AudioManagerDaemon/src/CAmWatchdog.cpp
+++ b/AudioManagerDaemon/src/CAmWatchdog.cpp
@@ -42,8 +42,14 @@ CAmWatchdog::CAmWatchdog(CAmSocketHandler* CAmSocketHandler) :
{
assert(mpCAmSocketHandler);
+
//first retrieve the timeout interval
- int watchdogTimeout = atoi(getenv("WATCHDOG_USEC"));
+
+ int watchdogTimeout = 0;
+
+ char* wusec=getenv("WATCHDOG_USEC");
+ if (wusec)
+ watchdogTimeout=atoi(wusec);
if (watchdogTimeout > 0)
{