@matheusbsbs / matheus-bagliano / commits / f35230fb11
Fork 0

git-daemon not listening when compiled with -DNO_IPV6

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>

Paul Serice committed Nov 21, 2005 at 11:07 UTC f35230fb1123a0db4776c574a874aecec1f38db8
1 file changed +6
daemon.c
+6
@@ -466,8 +466,14 @@ static int socksetup(int port, int **socklist_p)
466 return 0;
467 }
468
469 + if (listen(sockfd, 5) < 0) {
470 + close(sockfd);
471 + return 0;
472 + }
473 +
474 *socklist_p = xmalloc(sizeof(int));
475 **socklist_p = sockfd;
476 + return 1;
477 }
478
479 #endif