LOGE("Fail to run watch (%d)", pid);
return -1;
}
+ LOGI("Launch (%s) done : (%d)", watch_appid.c_str(), pid);
return pid;
}
string appid = data.GetString(AUL_K_APPID);
string pid = data.GetString(AUL_K_PID);
string is_faulted = data.GetString(AUL_K_IS_FAULT);
+ LOGW("Watch(%s)(%s) DEAD", appid.c_str(), pid.c_str());
list<shared_ptr<Watch>>::iterator it;
for (it = holder->stack_.begin(); it != holder->stack_.end(); ++it) {
if ((*it)->GetAppId() == appid &&
pid == to_string((*it)->GetPid())) {
(*it)->SetFaulted(is_faulted == "true");
holder->OnDead(**it);
+ holder->stack_.erase(it);
+ LOGW("REMOVE DEAD WATCH (%s)(%s)", appid.c_str(), pid.c_str());
break;
}
}
- holder->stack_.erase(it);
- LOGW("DEAD DONE (%s)", appid.c_str());
+ LOGW("DEAD DONE (%s)(%s)", appid.c_str(), pid.c_str());
return 0;
}