From 31dc3a44e5da9df146b8a016497f2d89c4b73d56 Mon Sep 17 00:00:00 2001 From: christian mueller Date: Tue, 26 Jun 2012 10:57:47 +0200 Subject: * [GAM-24] turn watchdog feature off by default. Signed-off-by: christian mueller --- AudioManagerDaemon/src/CAmWatchdog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'AudioManagerDaemon') 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) { -- cgit v1.2.1