Commit 9d99af53 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

if select returns -1, bail out of the loop

parent c8d850db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: