diff --git a/src/child.c b/src/child.c index 01ef178..033885f 100644 --- a/src/child.c +++ b/src/child.c @@ -253,7 +253,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.