From da0b380655ad10865c8e56b15641373b656f0807 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 24 Oct 2003 20:58:34 +0000 Subject: don't select() forever, set a timeout so at least the test fails nice --- tests/libtest/lib503.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libtest/lib503.c') diff --git a/tests/libtest/lib503.c b/tests/libtest/lib503.c index c77e084bc..126e257a6 100644 --- a/tests/libtest/lib503.c +++ b/tests/libtest/lib503.c @@ -40,6 +40,7 @@ CURLcode test(char *URL) while(!done) { fd_set rd, wr, exc; int max_fd; + struct timeval interval={1,0}; while (res == CURLM_CALL_MULTI_PERFORM) { res = curl_multi_perform(m, &running); @@ -66,7 +67,7 @@ CURLcode test(char *URL) return 89; } - if (select(max_fd+1, &rd, &wr, &exc, NULL) == -1) { + if (select(max_fd+1, &rd, &wr, &exc, &interval) == -1) { fprintf(stderr, "bad select??\n"); return 95; } -- cgit v1.2.3