diff options
author | Paul Serice <paul@serice.net> | 2005-11-21 18:07:23 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-21 23:36:43 +0100 |
commit | f35230fb1123a0db4776c574a874aecec1f38db8 (patch) | |
tree | 7b7ad64914f1d3bd587babf87fa83f6d9277426a /daemon.c | |
parent | git-repack: Properly abort in corrupt repository (diff) | |
download | git-f35230fb1123a0db4776c574a874aecec1f38db8.tar.xz git-f35230fb1123a0db4776c574a874aecec1f38db8.zip |
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>
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |