Remove usage of exceptional fdsets with select().

This commit is contained in:
John Hood
2015-12-28 06:07:28 -05:00
parent 19f214e46d
commit ca21788c96
6 changed files with 3 additions and 49 deletions
-4
View File
@@ -153,10 +153,6 @@ int main( int argc, char *argv[] )
/* we only read one socket each run */
network_ready_to_read = true;
}
if ( sel.error( *it ) ) {
break;
}
}
if ( network_ready_to_read ) {
-2
View File
@@ -158,8 +158,6 @@ static void emulate_terminal( int fd )
if ( vt_parser( fd, &parser ) < 0 ) {
return;
}
} else if ( sel.error( STDIN_FILENO ) || sel.error( fd ) ) {
return;
} else {
fprintf( stderr, "select mysteriously woken up\n" );
}
-2
View File
@@ -311,8 +311,6 @@ static void emulate_terminal( int fd )
perror( "ioctl TIOCSWINSZ" );
return;
}
} else if ( sel.error( STDIN_FILENO ) || sel.error( fd ) ) {
break;
}
Terminal::Framebuffer new_frame( complete.get_fb() );