mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:53:31 +03:00
parent
2099dde2c8
commit
1d173f3413
8 changed files with 24 additions and 24 deletions
|
|
@ -51,7 +51,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 */
|
||||
int repeats = 0;
|
||||
|
||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||
|
|
@ -70,7 +70,7 @@ int main(void)
|
|||
/* we start some action by calling perform right away */
|
||||
curl_multi_perform(multi_handle, &still_running);
|
||||
|
||||
do {
|
||||
while(still_running) {
|
||||
CURLMcode mc; /* curl_multi_wait() return code */
|
||||
int numfds;
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ int main(void)
|
|||
repeats = 0;
|
||||
|
||||
curl_multi_perform(multi_handle, &still_running);
|
||||
} while(still_running);
|
||||
}
|
||||
|
||||
curl_multi_remove_handle(multi_handle, http_handle);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue