summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7eb290)
raw | patch | inline | side by side (parent: f7eb290)
author | Nick Hengeveld <nickh@reactrix.com> | |
Fri, 21 Oct 2005 19:06:27 +0000 (12:06 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 22 Oct 2005 02:20:18 +0000 (19:20 -0700) |
Allow running requests to finish after a pull error
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c | patch | blob | history |
diff --git a/http-fetch.c b/http-fetch.c
index ed1053ade3e7e71251bfcf890cb304c7ce928222..1ee1df20d6b2824e987207ebb8f847e880de358b 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
struct active_request_slot *slot;
char *low_speed_limit;
char *low_speed_time;
+ char *wait_url;
+ int rc = 0;
while (arg < argc && argv[arg][0] == '-') {
if (argv[arg][1] == 't') {
alt->next = NULL;
if (pull(commit_id))
- return 1;
+ rc = 1;
curl_slist_free_all(pragma_header);
curl_slist_free_all(no_pragma_header);
#endif
slot = active_queue_head;
while (slot != NULL) {
+ if (slot->in_use) {
+ if (get_verbosely) {
+ curl_easy_getinfo(slot->curl,
+ CURLINFO_EFFECTIVE_URL,
+ &wait_url);
+ fprintf(stderr, "Waiting for %s\n", wait_url);
+ }
+ run_active_slot(slot);
+ }
if (slot->curl != NULL)
curl_easy_cleanup(slot->curl);
slot = slot->next;
curl_multi_cleanup(curlm);
#endif
curl_global_cleanup();
- return 0;
+ return rc;
}