* [GAM-24] turn watchdog feature off by default.
authorchristian mueller <christian.ei.mueller@bmw.de>
Tue, 26 Jun 2012 08:57:47 +0000 (10:57 +0200)
committerchristian mueller <christian.ei.mueller@bmw.de>
Tue, 26 Jun 2012 08:57:47 +0000 (10:57 +0200)
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
AudioManagerDaemon/src/CAmWatchdog.cpp
CMakeLists.txt

index 61e0624..15c7dcc 100755 (executable)
@@ -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)
     {
index 6ec4328..b4c30bf 100755 (executable)
@@ -71,7 +71,7 @@ OPTION( WITH_TELNET
        "build with Telnetserver (can only work with SocketHandler)" ON)
        
 OPTION ( WITH_SYSTEMD_WATCHDOG
-    "build with systemD support & watchdog" ON)
+    "build with systemD support & watchdog" OFF)
        
 OPTION ( USE_BUILD_LIBS
        "build with default library path = build path" ON)
@@ -163,7 +163,7 @@ if(WITH_MAIN)
 endif(WITH_MAIN)
 
 IF(EXISTS "${CMAKE_SOURCE_DIR}/ProjectSpecific/")
-    add_subdirectory (ProjectSpecific)
+    #add_subdirectory (ProjectSpecific)
 endif(EXISTS "${CMAKE_SOURCE_DIR}/ProjectSpecific/")
 
 # uninstall target