summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorFranck Bui-Huu <vagabon.xyz@gmail.com>2006-09-13 08:26:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-13 19:20:15 (GMT)
commit8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f (patch)
tree8089cb14dedd8cd61b945ebc6b292930406f752d /send-pack.c
parentcdad8bbe92a447233133be8f9f3015c1bd7e10eb (diff)
downloadgit-8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f.zip
git-8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f.tar.gz
git-8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f.tar.bz2
Test return value of finish_connect()
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/send-pack.c b/send-pack.c
index ac4501d..5172ef8 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;
}