{"thread":{"id":"2162","subject":"[PATCH] git-daemon: fix poll timeout","startedAt":"2005-10-20T08:33:43Z","lastAt":"2005-10-20T08:33:43Z","messageCount":1,"participants":["Timo Hirvonen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"10346","messageId":"20051020113343.692c991d.tihirvon@gmail.com","threadId":"2162","inReplyTo":null,"subject":"[PATCH] git-daemon: fix poll timeout","fromName":"Timo Hirvonen","fromEmail":"tihirvon@gmail.com","sentAt":"2005-10-20T08:33:43Z","receivedAt":"2005-10-20T08:33:43Z","isPatch":true,"sender":{"key":"tihirvon@gmail.com","avatar":null},"body":"Timeout must be negative (infinite), not 0.\n\n---\n\n daemon.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\napplies-to: 50f9bed9a78e1f51178ebf6be3cd9c20b2ffcb0b\na6603be778e535b12f7aa42174889981af42b10c\ndiff --git a/daemon.c b/daemon.c\nindex c3381b3..b3bcd7a 100644\n--- a/daemon.c\n+++ b/daemon.c\n@@ -533,7 +533,7 @@ static int service_loop(int socknum, int\n \tfor (;;) {\n \t\tint i;\n \n-\t\tif (poll(pfd, socknum, 0) < 0) {\n+\t\tif (poll(pfd, socknum, -1) < 0) {\n \t\t\tif (errno != EINTR) {\n \t\t\t\terror(\"poll failed, resuming: %s\",\n \t\t\t\t      strerror(errno));\n---\n0.99.8.GIT\n"}]}