aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r--src/testcurl/test_post_loop.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index e19941df..1d4657c6 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -396,7 +396,15 @@ testExternalPost ()
396 timeout = 0; /* terminate quickly... */ 396 timeout = 0; /* terminate quickly... */
397 tv.tv_sec = timeout / 1000; 397 tv.tv_sec = timeout / 1000;
398 tv.tv_usec = (timeout % 1000) * 1000; 398 tv.tv_usec = (timeout % 1000) * 1000;
399 select (max + 1, &rs, &ws, &es, &tv); 399 if (-1 == select (max + 1, &rs, &ws, &es, &tv))
400 {
401 if (EINTR == errno)
402 continue;
403 fprintf (stderr,
404 "select failed: %s\n",
405 strerror (errno));
406 break;
407 }
400 while (CURLM_CALL_MULTI_PERFORM == 408 while (CURLM_CALL_MULTI_PERFORM ==
401 curl_multi_perform (multi, &running)); 409 curl_multi_perform (multi, &running));
402 if (running == 0) 410 if (running == 0)