git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-daemon: fix poll timeout
@ 2005-10-20  8:33 Timo Hirvonen
  0 siblings, 0 replies; only message in thread
From: Timo Hirvonen @ 2005-10-20  8:33 UTC (permalink / raw)
  To: Git Mailing List, Junio C Hamano

Timeout must be negative (infinite), not 0.

---

 daemon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applies-to: 50f9bed9a78e1f51178ebf6be3cd9c20b2ffcb0b
a6603be778e535b12f7aa42174889981af42b10c
diff --git a/daemon.c b/daemon.c
index c3381b3..b3bcd7a 100644
--- a/daemon.c
+++ b/daemon.c
@@ -533,7 +533,7 @@ static int service_loop(int socknum, int
 	for (;;) {
 		int i;
 
-		if (poll(pfd, socknum, 0) < 0) {
+		if (poll(pfd, socknum, -1) < 0) {
 			if (errno != EINTR) {
 				error("poll failed, resuming: %s",
 				      strerror(errno));
---
0.99.8.GIT

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-20  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20  8:33 [PATCH] git-daemon: fix poll timeout Timo Hirvonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).