From 7f272ca80c1dbb8157e204a821365448eaec52ea Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Thu, 5 Jan 2006 09:56:37 +0100 Subject: [PATCH] trivial: retval of waitpid is not errno ...but is used as such and passed to strerror. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- fetch-clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-clone.c b/fetch-clone.c index 2b2aa15e..f46fe6ec 100644 --- a/fetch-clone.c +++ b/fetch-clone.c @@ -47,7 +47,7 @@ static int finish_pack(const char *pack_tmp_name, const char *me) 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)) { -- 2.11.0