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

trivial: retval of waitpid is not errno

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 5, 2006, 08:56 UTC
Message-ID
<81b0412b0601050056p3b51ff7bt5c75802f6ba07092@mail.gmail.com>
...but is used as such and passed to strerror.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Subject: [PATCH] retval of waitpid is not errno
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 fetch-clone.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
a1dd9ab6b49a6c4e7abb6519933bf2bb22594bd4
diff --git a/fetch-clone.c b/fetch-clone.c
index 2b2aa15..f46fe6e 100644
--- a/fetch-clone.c
+++ b/fetch-clone.c
@@ -47,7 +47,7 @@ static int finish_pack(const char *pack_
 		if (retval < 0) {
 			if (errno == EINTR)
 				continue;
-			error("waitpid failed (%s)", strerror(retval));
+			error("waitpid failed (%s)", strerror(errno));
 			goto error_die;
 		}
 		if (WIFSIGNALED(status)) {
-- 
1.0.GIT
Next: Junio C Hamano
Message 1 of 2 in “trivial: retval of waitpid is not errno”
  1. Alex RiesenJan 5, 2006
  2. Junio C HamanoJan 7, 2006

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.