diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-06-26 10:57:47 +0200 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-06-26 10:57:47 +0200 |
commit | 31dc3a44e5da9df146b8a016497f2d89c4b73d56 (patch) | |
tree | de7d311c901a7802c3de5b00ce64c8cfc8e661b9 /AudioManagerDaemon/src/CAmWatchdog.cpp | |
parent | 96ab9ddc9098ef02efac70a73ed32f288e8185e2 (diff) | |
download | audiomanager-31dc3a44e5da9df146b8a016497f2d89c4b73d56.tar.gz |
* [GAM-24] turn watchdog feature off by default.
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
Diffstat (limited to 'AudioManagerDaemon/src/CAmWatchdog.cpp')
-rwxr-xr-x | AudioManagerDaemon/src/CAmWatchdog.cpp | 8 |
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) { |