Core: Fix in LocalProcess::Finish

git-svn-id: svn://ultimatepp.org/upp/trunk@11258 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-07-17 09:57:19 +00:00
parent f9884e28ec
commit ef27376f7c

View file

@ -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();
}