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

[RFC PATCH 1B] credential-cache--daemon: close input before exit-ing

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jul 7, 2022, 01:54 UTC
Message-ID
<c344938b-afe9-edef-1e0d-fbe2425c8c01@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
 builtin/credential-cache--daemon.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/builtin/credential-cache--daemon.c b/builtin/credential-cache--daemon.c
index 4c6c89ab0d..556393498f 100644
--- a/builtin/credential-cache--daemon.c
+++ b/builtin/credential-cache--daemon.c
@@ -138,6 +138,7 @@ static void serve_one_client(FILE *in, FILE *out)
 		 * process actually ends, which closes the socket and gives
 		 * them EOF.
 		 */
+		fclose(in);
 		exit(0);
 	}
 	else if (!strcmp(action.buf, "erase"))
-- 
2.37.0
Next: Ævar Arnfjörð Bjarmason
Message 1 of 3 in “credential-cache--daemon: close input before exit-ing”
  1. credential-cache--daemon: close input before exit-ingRamsay Jones, Jul 7, 2022
  2. Ævar Arnfjörð BjarmasonJul 7, 2022
  3. Ramsay JonesJul 7, 2022

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.