From: Alex Riesen Date: Thu, 5 Jan 2006 08:56:37 +0000 (+0100) Subject: trivial: retval of waitpid is not errno X-Git-Tag: v1.0.7^2~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7f272ca80c1dbb8157e204a821365448eaec52ea;p=git.git 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 --- 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)) {