|
@@ -230,7 +230,7 @@ ErrorCodeEnum CDeviceControlFSM::RestartSogouServices()
|
|
const BOOL s3 = ExistsFileA(shutdown_service_without_monitor.c_str());
|
|
const BOOL s3 = ExistsFileA(shutdown_service_without_monitor.c_str());
|
|
|
|
|
|
if (s3) {
|
|
if (s3) {
|
|
- Dbg("to shutdown sogou service except monitor....");
|
|
|
|
|
|
+ Dbg("to shutdown sogou service except monitor...");
|
|
char* relate_processes[3] = { "sogouImeWebSrv", "sogouImeService", "sogoumonitor.sh" };
|
|
char* relate_processes[3] = { "sogouImeWebSrv", "sogouImeService", "sogoumonitor.sh" };
|
|
int count = 4;
|
|
int count = 4;
|
|
alive_process_info old_processes[4];
|
|
alive_process_info old_processes[4];
|
|
@@ -240,6 +240,10 @@ ErrorCodeEnum CDeviceControlFSM::RestartSogouServices()
|
|
int sogouImeWebSrv_PID(0), sogouImeServicePID(0);
|
|
int sogouImeWebSrv_PID(0), sogouImeServicePID(0);
|
|
|
|
|
|
bool monitor_exist(false), other_exists(false);
|
|
bool monitor_exist(false), other_exists(false);
|
|
|
|
+
|
|
|
|
+ /** 因为接口暂时获取不了命令行的内容,只能暂时将此接口置为成功 [Gifur@2022110]*/
|
|
|
|
+ monitor_exist = true;
|
|
|
|
+
|
|
for (int i = 0; i < count; ++i) {
|
|
for (int i = 0; i < count; ++i) {
|
|
if (strcmp(old_processes[i].name, relate_processes[2]) == 0) {
|
|
if (strcmp(old_processes[i].name, relate_processes[2]) == 0) {
|
|
monitor_exist = true;
|
|
monitor_exist = true;
|