summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef07618)
raw | patch | inline | side by side (parent: ef07618)
author | Paul Serice <paul@serice.net> | |
Mon, 21 Nov 2005 17:07:23 +0000 (11:07 -0600) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 21 Nov 2005 22:36:43 +0000 (14:36 -0800) |
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
socksetup() was not returning socket count when compiled with -DNO_IPV6.
Signed-off-by: Paul Serice <paul@serice.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c | patch | blob | history |
diff --git a/daemon.c b/daemon.c
index d788167ae0bbce0995329e0263e7082513087441..91b96569cd75c77cd4ee169c55be045daccf3908 100644 (file)
--- a/daemon.c
+++ b/daemon.c
return 0;
}
+ if (listen(sockfd, 5) < 0) {
+ close(sockfd);
+ return 0;
+ }
+
*socklist_p = xmalloc(sizeof(int));
**socklist_p = sockfd;
+ return 1;
}
#endif