mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:43:35 +03:00
parent
2099dde2c8
commit
1d173f3413
8 changed files with 24 additions and 24 deletions
|
|
@ -245,7 +245,7 @@ int main(int argc, char **argv)
|
|||
CURL *easy[NUM_HANDLES];
|
||||
CURLM *multi_handle;
|
||||
int i;
|
||||
int still_running; /* keep number of running handles */
|
||||
int still_running = 0; /* keep number of running handles */
|
||||
const char *filename = "index.html";
|
||||
|
||||
if(argc > 1)
|
||||
|
|
@ -279,7 +279,7 @@ int main(int argc, char **argv)
|
|||
/* 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 */
|
||||
|
|
@ -348,7 +348,7 @@ int main(int argc, char **argv)
|
|||
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