mirror of
https://github.com/curl/curl.git
synced 2026-05-30 14:17:29 +03:00
if select returns -1, bail out of the loop
This commit is contained in:
parent
c8d850dbad
commit
9d99af5329
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue