summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/child.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/child.c b/src/child.c
index e7e4b35..da82139 100644
--- a/src/child.c
+++ b/src/child.c
@@ -260,7 +260,13 @@ static void child_main (struct child_s *ptr)
continue;
}
- socket_blocking(listenfd);
+ 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));
+ exit(1);
+ }
/*
* We have a socket that is readable.