diff --git a/src/zzuf.c b/src/zzuf.c index 242f0c9..c80b0c2 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -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);