diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-23 14:57:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-23 14:57:05 +0000 |
commit | 7dce0363c4a99a36f7947d527175883a537e6193 (patch) | |
tree | 48c730c7504f8a8022785de5d72f15d5d2c6dbf9 /src/testcurl/test_process_arguments.c | |
parent | a0060ee639310e960c6a2ab4b145708f544093af (diff) | |
download | libmicrohttpd-7dce0363c4a99a36f7947d527175883a537e6193.tar.gz libmicrohttpd-7dce0363c4a99a36f7947d527175883a537e6193.zip |
more select() return value checks in testcases
Diffstat (limited to 'src/testcurl/test_process_arguments.c')
-rw-r--r-- | src/testcurl/test_process_arguments.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testcurl/test_process_arguments.c b/src/testcurl/test_process_arguments.c index b5238043..0af578f8 100644 --- a/src/testcurl/test_process_arguments.c +++ b/src/testcurl/test_process_arguments.c | |||
@@ -200,7 +200,11 @@ testExternalGet () | |||
200 | } | 200 | } |
201 | tv.tv_sec = 0; | 201 | tv.tv_sec = 0; |
202 | tv.tv_usec = 1000; | 202 | tv.tv_usec = 1000; |
203 | select (maxposixs + 1, &rs, &ws, &es, &tv); | 203 | if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv)) |
204 | { | ||
205 | if (EINTR != errno) | ||
206 | abort (); | ||
207 | } | ||
204 | curl_multi_perform (multi, &running); | 208 | curl_multi_perform (multi, &running); |
205 | if (running == 0) | 209 | if (running == 0) |
206 | { | 210 | { |