aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/multi-single.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/multi-single.c')
-rw-r--r--docs/examples/multi-single.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/examples/multi-single.c b/docs/examples/multi-single.c
index 0ba932f7a..b23f3c9d4 100644
--- a/docs/examples/multi-single.c
+++ b/docs/examples/multi-single.c
@@ -65,6 +65,10 @@ int main(int argc, char **argv)
/* get file descriptors from the transfers */
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
+ /* In a real-world program you OF COURSE check the return code of the
+ function calls, *and* you make sure that maxfd is bigger than -1 so
+ that the call to select() below makes sense! */
+
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
switch(rc) {