1. Stefan Saasen
  2. git


Alex Riesen  committed 7f272ca

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>

Comments (0)

Files changed (1)

File fetch-clone.c Modified

View file
  • Ignore whitespace
  • Hide word diff
 		if (retval < 0) {
 			if (errno == EINTR)
-			error("waitpid failed (%s)", strerror(retval));
+			error("waitpid failed (%s)", strerror(errno));
 			goto error_die;
 		if (WIFSIGNALED(status)) {