git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-daemon: fix poll timeout

From
THTimo Hirvonen <tihirvon@gmail.com>
Date
Oct 20, 2005, 08:33 UTC
Message-ID
<20051020113343.692c991d.tihirvon@gmail.com>
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
Message 1 of 1 in “git-daemon: fix poll timeout”
  1. git-daemon: fix poll timeoutTimo Hirvonen, Oct 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.