@matheusbsbs / matheus-bagliano / commits / 7f272ca80c
Fork 0

trivial: retval of waitpid is not errno

...but is used as such and passed to strerror. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Alex Riesen committed Jan 5, 2006 at 09:56 UTC 7f272ca80c1dbb8157e204a821365448eaec52ea
1 file changed +1 -1
fetch-clone.c
+1 -1
@@ -47,7 +47,7 @@ static int finish_pack(const char *pack_tmp_name, const char *me)
47 if (retval < 0) {
48 if (errno == EINTR)
49 continue;
50 - error("waitpid failed (%s)", strerror(retval));
50 + error("waitpid failed (%s)", strerror(errno));
51 goto error_die;
52 }
53 if (WIFSIGNALED(status)) {