Browse Source

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>
maint
Franck Bui-Huu 19 years ago committed by Junio C Hamano
parent
commit
8a5dbef8ac
  1. 4
      fetch-pack.c
  2. 4
      peek-remote.c
  3. 4
      send-pack.c

4
fetch-pack.c

@ -519,7 +519,7 @@ int main(int argc, char **argv) @@ -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) @@ -534,5 +534,5 @@ int main(int argc, char **argv)
}
}

return ret;
return !!ret;
}

4
peek-remote.c

@ -66,6 +66,6 @@ int main(int argc, char **argv) @@ -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;
}

4
send-pack.c

@ -408,6 +408,6 @@ int main(int argc, char **argv) @@ -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;
}

Loading…
Cancel
Save