X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=fetch-clone.c;h=f46fe6ecbb775b965fb6110dc81746cd5bb230c5;hb=353ce81597e831969ac37d6991346f8c39c1488e;hp=2b2aa15ea77b97da523a0befab26fb9e7abe948a;hpb=c2f3bf071ee90b01f2d629921bb04c4f798f02fa;p=git.git 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)) {