aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-02 06:40:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-02 06:40:31 +0000
commit9d99af532912a3c3dcd3b489c4073ddb439ddcf6 (patch)
treec3b288057c4c5922c775bd101e76a32a2ec51d24 /docs/examples
parentc8d850dbad7fae0ecd6f8e96dcfbea4188f353e6 (diff)
if select returns -1, bail out of the loop
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/multi-single.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/examples/multi-single.c b/docs/examples/multi-single.c
index 1998d25db..b6ba0c5c0 100644
--- a/docs/examples/multi-single.c
+++ b/docs/examples/multi-single.c
@@ -70,6 +70,8 @@ int main(int argc, char **argv)
switch(rc) {
case -1:
/* select error */
+ still_running = 0;
+ printf("select() returns error, this is badness\n");
break;
case 0:
default: