# trivial: retval of waitpid is not errno

2 messages from 2006-01-05 to 2006-01-07. Participants: Alex Riesen, Junio C Hamano.
Thread: https://gitlist.dev/t/2969

## Alex Riesen, 2006-01-05 08:56

Subject: trivial: retval of waitpid is not errno
Message-ID: <81b0412b0601050056p3b51ff7bt5c75802f6ba07092@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0601050056p3b51ff7bt5c75802f6ba07092%40mail.gmail.com

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

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


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

```

## Junio C Hamano, 2006-01-07 02:27

Subject: Re: trivial: retval of waitpid is not errno
Message-ID: <7vzmm8pyb4.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vzmm8pyb4.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <81b0412b0601050056p3b51ff7bt5c75802f6ba07092@mail.gmail.com>

```
Thanks for all the trivial series.  Most of them applied as they
are, others I have already sent out comments.

```
