Lines Matching refs:fd
162 httpd->fds[i].fd = httpd->sock[i];
195 daemon_runchild(bozohttpd_t *httpd, int fd)
200 dup2(fd, 0);
201 dup2(fd, 1);
202 /*dup2(fd, 2);*/
203 close(fd);
207 daemon_poll_err(bozohttpd_t *httpd, int fd, int idx)
212 bozo_warn(httpd, "poll on fd %d pid %d revents %d: %s",
213 httpd->fds[idx].fd, getpid(), httpd->fds[idx].revents,
258 int fd;
286 if (daemon_poll_err(httpd, fd, i))
292 fd = accept(httpd->fds[i].fd,
294 if (fd == -1) {
313 daemon_runchild(httpd, fd);
322 close(fd);
327 daemon_runchild(httpd, fd);
331 close(fd);