mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-08 02:54:56 -06:00
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:
parent
cc071e4b18
commit
e612643f04
3 changed files with 6 additions and 6 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue