summaryrefslogtreecommitdiffhomepage
path: root/src/child.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/child.c')
-rw-r--r--src/child.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/child.c b/src/child.c
index 15d4fe8..9d59d20 100644
--- a/src/child.c
+++ b/src/child.c
@@ -130,14 +130,6 @@ void child_main_loop (void)
for (i = 0; i < vector_length(listen_fds); i++) {
int *fd = (int *) vector_getentry(listen_fds, i, NULL);
- ret = socket_nonblocking(*fd);
- if (ret != 0) {
- log_message(LOG_ERR, "Failed to set the listening "
- "socket %d to non-blocking: %s",
- fd, strerror(errno));
- continue;
- }
-
FD_SET(*fd, &rfds);
maxfd = max(maxfd, *fd);
}
@@ -175,14 +167,6 @@ void child_main_loop (void)
continue;
}
- ret = socket_blocking(listenfd);
- if (ret != 0) {
- log_message(LOG_ERR, "Failed to set listening "
- "socket %d to blocking for accept: %s",
- listenfd, strerror(errno));
- continue;
- }
-
/*
* We have a socket that is readable.
* Continue handling this connection.