aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/10-at-a-time.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-10-13 14:01:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-10-13 14:01:19 +0000
commitf53347631eb4a5a075589e6fece43aced010a5bb (patch)
tree1cd251ead3f9be7e337d56011ce0569dba1cd02c /docs/examples/10-at-a-time.c
parentefe3cb6e1ae672a48746c6000b1aedd2742deac7 (diff)
Added comments about checking return code and the maxfd counter
Diffstat (limited to 'docs/examples/10-at-a-time.c')
-rw-r--r--docs/examples/10-at-a-time.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/examples/10-at-a-time.c b/docs/examples/10-at-a-time.c
index be3b6faee..50392259c 100644
--- a/docs/examples/10-at-a-time.c
+++ b/docs/examples/10-at-a-time.c
@@ -123,6 +123,9 @@ int main(void)
return EXIT_FAILURE;
}
+ /* In a real-world program you OF COURSE check the return that maxfd is
+ bigger than -1 so that the call to select() below makes sense! */
+
if (curl_multi_timeout(cm, &L)) {
fprintf(stderr, "E: curl_multi_timeout\n");
return EXIT_FAILURE;