summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc4afa5)
raw | patch | inline | side by side (parent: dc4afa5)
author | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | |
Thu, 29 Sep 2005 01:01:55 +0000 (18:01 -0700) | ||
committer | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | |
Thu, 29 Sep 2005 01:01:55 +0000 (18:01 -0700) |
daemon.c | patch | blob | history |
diff --git a/daemon.c b/daemon.c
index 79e72e0bddc47c755b69886b9a97acc04896efe9..526ac782cf73cf42eb52e7db803500a13bfa3714 100644 (file)
--- a/daemon.c
+++ b/daemon.c
{
int socknum = 0, *socklist = NULL;
int maxfd = -1;
- fd_set fds_init, fds;
char pbuf[NI_MAXSERV];
struct addrinfo hints, *ai0, *ai;
if (gai)
die("getaddrinfo() failed: %s\n", gai_strerror(gai));
- FD_ZERO(&fds_init);
-
for (ai = ai0; ai; ai = ai->ai_next) {
int sockfd;
int *newlist;
socklist = newlist;
socklist[socknum++] = sockfd;
- FD_SET(sockfd, &fds_init);
if (maxfd < sockfd)
maxfd = sockfd;
}