From: Daniel Stenberg Date: Fri, 2 Apr 2004 06:40:31 +0000 (+0000) Subject: if select returns -1, bail out of the loop X-Git-Tag: c-ares-1_2_0~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d99af532912a3c3dcd3b489c4073ddb439ddcf6;p=curl if select returns -1, bail out of the loop --- 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: