mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
Core: Fixed Win32 LocalProcess problem truncating pipe output
This commit is contained in:
parent
5943687992
commit
1a9727eef6
1 changed files with 1 additions and 0 deletions
|
|
@ -430,6 +430,7 @@ bool LocalProcess::IsRunning() {
|
|||
return false;
|
||||
if(GetExitCodeProcess(hProcess, &exitcode) && exitcode == STILL_ACTIVE)
|
||||
return true;
|
||||
WaitForSingleObject(hProcess, 200); // this is needed to finish pushing the output to the pipe, 200ms instead of INFINITE just prudence
|
||||
dword n;
|
||||
if(PeekNamedPipe(hOutputRead, NULL, 0, NULL, &n, NULL) && n)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue