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

[PATCH 2/2] credential-cache--daemon.c: unlink() a potentially stale unix socket

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Oct 22, 2011, 17:25 UTC
Message-ID
<4EA2FCA0.70002@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 credential-cache--daemon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/credential-cache--daemon.c b/credential-cache--daemon.c
index ee2c15a..c5fb1b2 100644
--- a/credential-cache--daemon.c
+++ b/credential-cache--daemon.c
@@ -230,6 +230,7 @@ static void serve_cache(const char *socket_path)
 {
 	int fd;
 
+	unlink(socket_path);
 	fd = unix_stream_listen(socket_path);
 	if (fd < 0)
 		die_errno("unable to bind to '%s'", socket_path);
-- 
1.7.7
Next: Jeff King
Message 1 of 2 in “credential-cache--daemon.c: unlink() a potentially stale unix socket”
  1. 2/2 credential-cache--daemon.c: unlink() a potentially stale unix socketRamsay Jones, Oct 22, 2011
  2. Jeff KingOct 22, 2011

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.