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
-15
View File
@@ -448,11 +448,6 @@ bool STMClient::main( void )
/* we only read one socket each run */
network_ready_to_read = true;
}
if ( sel.error( *it ) ) {
/* network problem */
break;
}
}
if ( network_ready_to_read ) {
@@ -493,16 +488,6 @@ bool STMClient::main( void )
}
}
if ( sel.error( STDIN_FILENO ) ) {
/* user problem */
if ( !network->has_remote_addr() ) {
break;
} else if ( !network->shutdown_in_progress() ) {
overlays.get_notification_engine().set_notification_string( wstring( L"Exiting..." ), true );
network->start_shutdown();
}
}
/* quit if our shutdown has been acknowledged */
if ( network->shutdown_in_progress() && network->shutdown_acknowledged() ) {
clean_shutdown = true;