mirror of
https://github.com/curl/curl.git
synced 2026-05-30 03:47:27 +03:00
parent
2099dde2c8
commit
1d173f3413
8 changed files with 24 additions and 24 deletions
|
|
@ -131,7 +131,7 @@ int main(void)
|
|||
CURL *http_handle;
|
||||
CURLM *multi_handle;
|
||||
|
||||
int still_running; /* keep number of running handles */
|
||||
int still_running = 0; /* keep number of running handles */
|
||||
|
||||
http_handle = curl_easy_init();
|
||||
|
||||
|
|
@ -150,7 +150,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 */
|
||||
|
|
@ -221,7 +221,7 @@ int main(void)
|
|||
curl_multi_perform(multi_handle, &still_running);
|
||||
break;
|
||||
}
|
||||
} while(still_running);
|
||||
}
|
||||
|
||||
curl_multi_cleanup(multi_handle);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue