Skip to content

Commit 7a88e3e

Browse files
committed
Merge branch 'cb/daemon-fd-check-fix' into next
Remove unnecessary check from "git daemon" code. * cb/daemon-fd-check-fix: daemon: remove unnecesary restriction for listener fd
2 parents 74e6fc6 + 0c85622 commit 7a88e3e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

daemon.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -990,11 +990,6 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis
990990
sockfd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
991991
if (sockfd < 0)
992992
continue;
993-
if (sockfd >= FD_SETSIZE) {
994-
logerror("Socket descriptor too large");
995-
close(sockfd);
996-
continue;
997-
}
998993

999994
#ifdef IPV6_V6ONLY
1000995
if (ai->ai_family == AF_INET6) {

0 commit comments

Comments
 (0)