From 8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f Mon Sep 17 00:00:00 2001 From: Franck Bui-Huu Date: Wed, 13 Sep 2006 10:26:47 +0200 Subject: [PATCH] Test return value of finish_connect() Signed-off-by: Franck Bui-Huu Signed-off-by: Junio C Hamano --- fetch-pack.c | 4 ++-- peek-remote.c | 4 ++-- send-pack.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fetch-pack.c b/fetch-pack.c index 377feded1..1b4d8272d 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -519,7 +519,7 @@ int main(int argc, char **argv) ret = fetch_pack(fd, nr_heads, heads); close(fd[0]); close(fd[1]); - finish_connect(pid); + ret |= finish_connect(pid); if (!ret && nr_heads) { /* If the heads to pull were given, we should have @@ -534,5 +534,5 @@ int main(int argc, char **argv) } } - return ret; + return !!ret; } diff --git a/peek-remote.c b/peek-remote.c index 87f1543fe..353da002b 100644 --- a/peek-remote.c +++ b/peek-remote.c @@ -66,6 +66,6 @@ int main(int argc, char **argv) ret = peek_remote(fd, flags); close(fd[0]); close(fd[1]); - finish_connect(pid); - return ret; + ret |= finish_connect(pid); + return !!ret; } diff --git a/send-pack.c b/send-pack.c index ac4501d34..5172ef8be 100644 --- a/send-pack.c +++ b/send-pack.c @@ -408,6 +408,6 @@ int main(int argc, char **argv) ret = send_pack(fd[0], fd[1], nr_heads, heads); close(fd[0]); close(fd[1]); - finish_connect(pid); - return ret; + ret |= finish_connect(pid); + return !!ret; } -- 2.30.2