From 8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f Mon Sep 17 00:00:00 2001 From: Franck Bui-Huu Date: Wed, 13 Sep 2006 10:26:47 +0200 Subject: Test return value of finish_connect() Signed-off-by: Franck Bui-Huu Signed-off-by: Junio C Hamano --- peek-remote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'peek-remote.c') diff --git a/peek-remote.c b/peek-remote.c index 87f1543fec..353da002b4 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; } -- cgit v1.2.1