mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:03:34 +03:00
parent
2099dde2c8
commit
1d173f3413
8 changed files with 24 additions and 24 deletions
|
|
@ -48,7 +48,7 @@ int main(void)
|
|||
CURL *handles[HANDLECOUNT];
|
||||
CURLM *multi_handle;
|
||||
|
||||
int still_running; /* keep number of running handles */
|
||||
int still_running = 0; /* keep number of running handles */
|
||||
int i;
|
||||
|
||||
CURLMsg *msg; /* for picking up messages with the transfer status */
|
||||
|
|
@ -74,7 +74,7 @@ int main(void)
|
|||
/* we start some action by calling perform right away */
|
||||
curl_multi_perform(multi_handle, &still_running);
|
||||
|
||||
do {
|
||||
while(still_running) {
|
||||
struct timeval timeout;
|
||||
int rc; /* select() return code */
|
||||
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||
|
|
@ -142,7 +142,7 @@ int main(void)
|
|||
curl_multi_perform(multi_handle, &still_running);
|
||||
break;
|
||||
}
|
||||
} while(still_running);
|
||||
}
|
||||
|
||||
/* See how the transfers went */
|
||||
while((msg = curl_multi_info_read(multi_handle, &msgs_left))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue