修正ffmpep进程关闭错误
This commit is contained in:
parent
8ef8c91f2e
commit
fff0345462
|
|
@ -165,10 +165,10 @@ static void s_kill(pid_t pid,int max_delay,bool force){
|
|||
WarnL << "\nOpen Process fAiled: " << GetLastError();
|
||||
return;
|
||||
}
|
||||
DWORD ret = TerminateProcess(hProcess, 0); //结束目标进程
|
||||
if (ret == 0) {
|
||||
WarnL << GetLastError;
|
||||
}
|
||||
//DWORD ret = TerminateProcess(hProcess, 0); //结束目标进程
|
||||
//if (ret == 0) {
|
||||
// WarnL << GetLastError;
|
||||
//}
|
||||
#else
|
||||
if (::kill(pid, force ? SIGKILL : SIGTERM) == -1) {
|
||||
//进程可能已经退出了
|
||||
|
|
|
|||
Loading…
Reference in New Issue