Remove usage of exceptional fdsets with select().
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
@@ -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" );
|
||||
}
|
||||
|
||||
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user