Core: LocalProcess now returns at max ~1KB in Read in Posix too

git-svn-id: svn://ultimatepp.org/upp/trunk@11102 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-05-18 07:47:45 +00:00
parent cc071e4b18
commit e612643f04
3 changed files with 6 additions and 6 deletions

View file

@ -510,7 +510,7 @@ bool LocalProcess::Read2(String& reso, String& rese)
FD_SET(pipe[0], set);
timeval tval = { 0, 0 };
int sv;
while((sv = select(pipe[0]+1, set, NULL, NULL, &tval)) > 0) {
if((sv = select(pipe[0]+1, set, NULL, NULL, &tval)) > 0) {
LLOG("Read() -> select");
char buffer[1024];
int done = read(pipe[0], buffer, sizeof(buffer));