|
@@ -206,8 +206,6 @@ int CPythonExecutor::RunScriptProcess()
|
|
|
|
|
|
Sleep(5000);
|
|
|
GLOBAL::WriteTextLog("脚本进程结束(%ld)", m_pi.dwProcessId);
|
|
|
- // 结束日志线程;
|
|
|
- m_bStopLogExport = TRUE;
|
|
|
// 同时需要关闭输出的管道,否则ReadFile会阻塞;
|
|
|
CloseHandle(m_hStdOutWrite);
|
|
|
m_hStdOutWrite = NULL;
|
|
@@ -348,9 +346,6 @@ int CPythonExecutor::ServiceRunScriptProcess()
|
|
|
WaitForSingleObject(m_pi.hProcess, INFINITE);
|
|
|
|
|
|
Sleep(5000);
|
|
|
- // 结束日志线程;
|
|
|
- m_bStopLogExport = TRUE;
|
|
|
-
|
|
|
// 关闭进程句柄.
|
|
|
CloseHandle(m_pi.hProcess);
|
|
|
CloseHandle(m_pi.hThread);
|