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) {
|
switch(rc) {
|
||||||
case -1:
|
case -1:
|
||||||
/* select error */
|
/* select error */
|
||||||
|
still_running = 0;
|
||||||
|
printf("select() returns error, this is badness\n");
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user