From 1a9727eef6be7d29c91e17887346a25ed60360fd Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Thu, 27 Apr 2023 10:50:13 +0200 Subject: [PATCH] Core: Fixed Win32 LocalProcess problem truncating pipe output --- uppsrc/Core/LocalProcess.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/uppsrc/Core/LocalProcess.cpp b/uppsrc/Core/LocalProcess.cpp index 69fcd55df..fb35e192e 100644 --- a/uppsrc/Core/LocalProcess.cpp +++ b/uppsrc/Core/LocalProcess.cpp @@ -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;