]> granicus.if.org Git - curl/commitdiff
if select returns -1, bail out of the loop
authorDaniel Stenberg <daniel@haxx.se>
Fri, 2 Apr 2004 06:40:31 +0000 (06:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 2 Apr 2004 06:40:31 +0000 (06:40 +0000)
docs/examples/multi-single.c

index 1998d25dbc145e8daecf6ad3de078efe003ed88a..b6ba0c5c072e7737b8e652fc31f23e9bd37d9d2b 100644 (file)
@@ -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: