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

[PATCH 2/3] daemon: fix error message after bind()

From
René Scharfe <l.s.r@web.de>
Date
Oct 1, 2014, 10:18 UTC
Message-ID
<542BD4E7.7030401@web.de>
In-Reply-To
<542BD471.3000308@web.de>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
---
 daemon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon.c b/daemon.c
index a6f467e..090f6a4 100644
--- a/daemon.c
+++ b/daemon.c
@@ -924,7 +924,7 @@ static int setup_named_sock(char *listen_addr, int listen_port, struct socketlis
 	}
 
 	if ( bind(sockfd, (struct sockaddr *)&sin, sizeof sin) < 0 ) {
-		logerror("Could not listen to %s: %s",
+		logerror("Could not bind to %s: %s",
 			 ip2str(AF_INET, (struct sockaddr *)&sin, sizeof(sin)),
 			 strerror(errno));
 		close(sockfd);
-- 
2.1.2
Previous: René ScharfeNext: René Scharfe
Message 2 of 4 in “daemon: handle gethostbyname() error”
  1. 1/3 daemon: handle gethostbyname() errorRené Scharfe, Oct 1, 2014
  2. 2/3 daemon: fix error message after bind()René Scharfe, Oct 1, 2014
  3. 3/3 daemon: remove write-only variable maxfdRené Scharfe, Oct 1, 2014
  4. Junio C HamanoOct 1, 2014

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.