From ef27376f7cdbcd2c024e020083fe8f74b6613123 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 17 Jul 2017 09:57:19 +0000 Subject: [PATCH] Core: Fix in LocalProcess::Finish git-svn-id: svn://ultimatepp.org/upp/trunk@11258 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/LocalProcess.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/LocalProcess.cpp b/uppsrc/Core/LocalProcess.cpp index 6c2134c45..7a014eed0 100644 --- a/uppsrc/Core/LocalProcess.cpp +++ b/uppsrc/Core/LocalProcess.cpp @@ -612,7 +612,12 @@ int LocalProcess::Finish(String& out) out.Cat(Get()); Sleep(1); // p.Wait would be much better here! } - out.Cat(Get()); + for(;;) { + String h = Get(); + if(h.IsVoid()) + break; + out.Cat(h); + } return GetExitCode(); }