|
@@ -872,16 +872,8 @@ namespace Chromium {
|
|
|
|
|
|
if (ConfigManager::getInstance().m_existRootIni && ConfigManager::getInstance().m_installMode)
|
|
|
return;//if root.ini exist and in install mode, do not close startup page
|
|
|
-#if defined(RVC_OS_LINUX)
|
|
|
- for (auto it : srcPids)
|
|
|
- {
|
|
|
- CSimpleStringA cmd = CSimpleStringA::Format("sudo kill -9 %d", it);
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("CloseCommonPage %s", cmd.GetData());
|
|
|
- system(cmd.GetData());
|
|
|
- }
|
|
|
-#else
|
|
|
+
|
|
|
CModTools::get_mutable_instance().StopChromiumBrowser(ERR_PAGE_REASON::startup);
|
|
|
-#endif
|
|
|
startupPageClean();
|
|
|
return;
|
|
|
}
|
|
@@ -993,9 +985,6 @@ namespace Chromium {
|
|
|
{
|
|
|
if (CModTools::get_mutable_instance().IsConfigWork())//url正常时才关闭
|
|
|
{
|
|
|
-#if defined(RVC_OS_LINUX)
|
|
|
- auto srcPids = getUosBrowserPIDs(CModTools::get_mutable_instance().getUosBrowser());
|
|
|
-#endif // RVC_OS_UOS
|
|
|
|
|
|
if (ConfigManager::getInstance().m_runAd) openAdPage();
|
|
|
openMainPage();
|
|
@@ -1004,16 +993,9 @@ namespace Chromium {
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(3));
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_SLV_CHROMIUM_URLOPEN, "正在启动业务界面");
|
|
|
|
|
|
-#if defined(RVC_OS_LINUX)
|
|
|
- for (auto it : srcPids)
|
|
|
- {
|
|
|
- CSimpleStringA cmd = CSimpleStringA::Format("sudo kill -9 %d", it);
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("CloseCommonPage %s", cmd.GetData());
|
|
|
- system(cmd.GetData());
|
|
|
- }
|
|
|
-#else
|
|
|
+
|
|
|
CModTools::get_mutable_instance().StopChromiumBrowser(ERR_PAGE_REASON::startup);
|
|
|
-#endif
|
|
|
+
|
|
|
startupPageClean();
|
|
|
|
|
|
//DbgEx("UnregistSysVarEvent TerminalStage %s", Error_Succeed == GetFunction()->UnregistSysVarEvent("TerminalStage") ? "success" : "fail");
|
|
@@ -1036,22 +1018,10 @@ namespace Chromium {
|
|
|
{
|
|
|
if (!ConfigManager::getInstance().m_withBrowser)
|
|
|
{
|
|
|
-#if defined(RVC_OS_LINUX)
|
|
|
- auto srcPids = getUosBrowserPIDs(CModTools::get_mutable_instance().getUosBrowser());
|
|
|
-#endif // RVC_OS_UOS
|
|
|
|
|
|
if (ConfigManager::getInstance().m_existRootIni && ConfigManager::getInstance().m_installMode)
|
|
|
return;//if root.ini exist and in install mode, do not close startup page
|
|
|
-#if defined(RVC_OS_LINUX)
|
|
|
- for (auto it : srcPids)
|
|
|
- {
|
|
|
- CSimpleStringA cmd = CSimpleStringA::Format("sudo kill -9 %d", it);
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("CloseCommonPage %s", cmd.GetData());
|
|
|
- system(cmd.GetData());
|
|
|
- }
|
|
|
-#else
|
|
|
CModTools::get_mutable_instance().StopChromiumBrowser(ERR_PAGE_REASON::startup);
|
|
|
-#endif
|
|
|
startupPageClean();
|
|
|
ERR_PAGE_REASON reson = ERR_PAGE_REASON::breakdown;
|
|
|
if (0 == CSimpleStringA("S").Compare(terminalStageVal.c_str(), true))
|