Change application exit default value when heart lost
This commit is contained in:
parent
5af52d6dbd
commit
a7fed6b99e
|
@ -79,7 +79,7 @@ static WIFI_STATUS g_WifiConnStatus = WIFI_CONNECTED;
|
|||
static PDBUS_MSG_PROC g_pMsgProcList = NULL;
|
||||
static uv_rwlock_t g_uvLoopRwLock;
|
||||
static PLOOP_TASK_ARRAY g_LoopArray = NULL;
|
||||
static unsigned int g_EnHBLExit = TRUE;
|
||||
static unsigned int g_EnHBLExit = FALSE;
|
||||
static uv_rwlock_t g_uvMsgProcRwLock;
|
||||
|
||||
#if USED_SHM_TO_DBUS
|
||||
|
@ -1449,10 +1449,13 @@ static void __dBusDeameonCb(MODULE_NAME modName, int status)
|
|||
"Daemon %s(%d) Msg: [%s]\n", ModuleNameToString(modName), modName,
|
||||
status == 0 ? "Connect" : "Disconnect");
|
||||
|
||||
LOG_EX(LOG_Debug, "status = %d, module = %d, g_EnHBLExit = %d\n",
|
||||
status, modName, g_EnHBLExit);
|
||||
|
||||
if(status != 0 && modName == MODULE_CONTROLLER && g_EnHBLExit)
|
||||
{
|
||||
sleep(1);
|
||||
//exit(0);
|
||||
usleep(1000);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue