mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
if select returns -1, bail out of the loop
This commit is contained in:
parent
c8d850dbad
commit
9d99af5329
@ -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…
Reference in New Issue
Block a user