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

[PATCH 1/4] git-daemon: call logerror() instead of error()

From
Stephen R. van den Berg <srb@cuci.nl>
Date
Aug 14, 2008, 18:02 UTC
Message-ID
<20080814180220.15729.34048.stgit@aristoteles.cuci.nl>
Fix wording/case of the two messages.
Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
---
 daemon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/daemon.c b/daemon.c
index 8dcde73..93e1106 100644
--- a/daemon.c
+++ b/daemon.c
@@ -836,7 +836,7 @@ static int socksetup(char *listen_addr, int listen_port, int **socklist_p)
 		if (sockfd < 0)
 			continue;
 		if (sockfd >= FD_SETSIZE) {
-			error("too large socket descriptor.");
+			logerror("Socket descriptor too large");
 			close(sockfd);
 			continue;
 		}
@@ -955,7 +955,7 @@ static int service_loop(int socknum, int *socklist)
 
 		if (poll(pfd, socknum + 1, -1) < 0) {
 			if (errno != EINTR) {
-				error("poll failed, resuming: %s",
+				logerror("Poll failed, resuming: %s",
 				      strerror(errno));
 				sleep(1);
 			}
Next: Stephen R. van den Berg
Message 1 of 4 in “git-daemon: call logerror() instead of error()”
  1. 1/4 git-daemon: call logerror() instead of error()Stephen R. van den Berg, Aug 14, 2008
  2. 2/4 git-daemon: use LOG_PID, simplify logging codeStephen R. van den Berg, Aug 14, 2008
  3. 3/4 git-daemon: move almost all code out of the child_handler()Stephen R. van den Berg, Aug 14, 2008
  4. 4/4 git-daemon: rewrite kindergarden, new option --max-connectionsStephen R. van den Berg, Aug 14, 2008

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.