Filedescriptor 0 is the debug channel, not stdin! Fix that.
This commit is contained in:
parent
9476ba411d
commit
6c5d32e89b
@ -938,7 +938,7 @@ static void read_children(struct opts *opts)
|
||||
if(opts->child[i].status != STATUS_RUNNING)
|
||||
continue;
|
||||
|
||||
for(j = 1; j < 3; j++)
|
||||
for(j = 0; j < 3; j++)
|
||||
ZZUF_FD_SET(opts->child[i].fd[j], &fdset, maxfd);
|
||||
}
|
||||
tv.tv_sec = 0;
|
||||
@ -946,7 +946,7 @@ static void read_children(struct opts *opts)
|
||||
|
||||
#if _WIN32
|
||||
for(i = 0; i < opts->maxchild; i++)
|
||||
for (j = 1; j < 3; j++)
|
||||
for (j = 0; j < 3; j++)
|
||||
{
|
||||
char tmpbuf[1025];
|
||||
int tmp = _read(opts->child[i].fd[j], tmpbuf, 1024);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user