aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-07 14:12:56 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-07 14:12:56 -0700
commit06294607579e0dd93fe6028e0b969362c3224e01 (patch)
tree02413b7d084f29342a7bddfe9b960770bfedd559
parentMerge branch 'jk/submodule-remote-lookup-cleanup' (diff)
parentdaemon: remove unnecesary restriction for listener fd (diff)
downloadgit-06294607579e0dd93fe6028e0b969362c3224e01.tar.gz
git-06294607579e0dd93fe6028e0b969362c3224e01.zip
Merge branch 'cb/daemon-fd-check-fix'
Remove unnecessary check from "git daemon" code. * cb/daemon-fd-check-fix: daemon: remove unnecesary restriction for listener fd
-rw-r--r--daemon.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/daemon.c b/daemon.c
index d1be61fd57..99741f0b45 100644
--- a/daemon.c
+++ b/daemon.c
@@ -990,11 +990,6 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis
sockfd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (sockfd < 0)
continue;
- if (sockfd >= FD_SETSIZE) {
- logerror("Socket descriptor too large");
- close(sockfd);
- continue;
- }
#ifdef IPV6_V6ONLY
if (ai->ai_family == AF_INET6) {