* [PATCH] git-daemon not listening when compiled with -DNO_IPV6
@ 2005-11-21 17:07 Paul Serice
0 siblings, 0 replies; only message in thread
From: Paul Serice @ 2005-11-21 17:07 UTC (permalink / raw
To: git
git-daemon was not listening when compiled with -DNO_IPV6.
socksetup() was not returning socket count when compiled with -DNO_IPV6.
Signed-off-by: Paul Serice <paul@serice.net>
---
daemon.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
applies-to: 339319e60db7b3f96f8c711407b135a54da7aa2e
bb8968537a35a635c6f8a6393cff8735b4edcef9
diff --git a/daemon.c b/daemon.c
index 2b81152..e889596 100644
--- a/daemon.c
+++ b/daemon.c
@@ -510,8 +510,14 @@ static int socksetup(int port, int **soc
return 0;
}
+ if (listen(sockfd, 5) < 0) {
+ close(sockfd);
+ return 0;
+ }
+
*socklist_p = xmalloc(sizeof(int));
**socklist_p = sockfd;
+ return 1;
}
#endif
---
0.99.9i
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-21 17:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21 17:07 [PATCH] git-daemon not listening when compiled with -DNO_IPV6 Paul Serice
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).