提交 f35230fb 编写于 作者: P Paul Serice 提交者: Junio C Hamano

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: NPaul Serice <paul@serice.net>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 ef07618f
......@@ -466,8 +466,14 @@ static int socksetup(int port, int **socklist_p)
return 0;
}
if (listen(sockfd, 5) < 0) {
close(sockfd);
return 0;
}
*socklist_p = xmalloc(sizeof(int));
**socklist_p = sockfd;
return 1;
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册