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>
This commit is contained in:
parent
ef07618fdd
commit
f35230fb11
6
daemon.c
6
daemon.c
@ -466,8 +466,14 @@ static int socksetup(int port, int **socklist_p)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (listen(sockfd, 5) < 0) {
|
||||||
|
close(sockfd);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
*socklist_p = xmalloc(sizeof(int));
|
*socklist_p = xmalloc(sizeof(int));
|
||||||
**socklist_p = sockfd;
|
**socklist_p = sockfd;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user