projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef07618
)
git-daemon not listening when compiled with -DNO_IPV6
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>
daemon.c
patch
|
blob
|
history
diff --git
a/daemon.c
b/daemon.c
index
d788167
..
91b9656
100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-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