Lines Matching refs:pipefd
159 int pipefd;
203 children[i].pipefd = -1;
210 child_register(int pipefd, int sockfd)
220 if (children[i].pipefd != -1 || children[i].pid > 0)
229 child->pipefd = pipefd;
262 if (child->pipefd != -1)
263 close(child->pipefd);
266 child->pipefd = -1;
281 if (child->pipefd != -1) {
282 close(child->pipefd);
283 child->pipefd = -1;
385 if (child->pipefd == -1)
428 if (children[i].pipefd != -1)
444 if (children[i].pipefd == -1 && children[i].pid <= 0)
446 logit("child %d: fd=%d pid=%ld %s%s", i, children[i].pipefd,
897 if (children[i].pipefd != -1) {
898 pfd[npfd].fd = children[i].pipefd;
916 if (children[i].pipefd == -1 ||
920 switch (read(children[i].pipefd, &c, sizeof(c))) {
926 "read %s", i, children[i].pipefd,
934 srclimit_done(children[i].pipefd);