diff options
author | Franck Bui-Huu <vagabon.xyz@gmail.com> | 2006-09-13 10:26:47 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-13 12:20:15 -0700 |
commit | 8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f (patch) | |
tree | 8089cb14dedd8cd61b945ebc6b292930406f752d /peek-remote.c | |
parent | cdad8bbe92a447233133be8f9f3015c1bd7e10eb (diff) | |
download | git-8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f.tar.gz git-8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f.tar.xz |
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 'peek-remote.c')
-rw-r--r-- | peek-remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |