if select returns -1, bail out of the loop

This commit is contained in:
Daniel Stenberg 2004-04-02 06:40:31 +00:00
parent c8d850dbad
commit 9d99af5329
1 changed files with 2 additions and 0 deletions

View 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: