From 9d99af532912a3c3dcd3b489c4073ddb439ddcf6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 2 Apr 2004 06:40:31 +0000 Subject: if select returns -1, bail out of the loop --- docs/examples/multi-single.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/examples') 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: -- cgit v1.2.3