Git development
 help / color / mirror / Atom feed
* trivial: retval of waitpid is not errno
@ 2006-01-05  8:56 Alex Riesen
  2006-01-07  2:27 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Riesen @ 2006-01-05  8:56 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 99 bytes --]

...but is used as such and passed to strerror.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>

[-- Attachment #2: 0003-retval-of-waitpid-is-not-errno.txt --]
[-- Type: text/plain, Size: 623 bytes --]

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-07  2:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05  8:56 trivial: retval of waitpid is not errno Alex Riesen
2006-01-07  2:27 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox