mosh-client: return meaningful exitstatus on network setup/teardown or other failure

This commit is contained in:
John Hood
2015-09-24 19:34:01 -04:00
parent 7fb542c874
commit 5959342ac7
3 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -408,7 +408,7 @@ bool STMClient::process_resize( void )
return true;
}
void STMClient::main( void )
bool STMClient::main( void )
{
/* initialize signal handling and structures */
main_init();
@@ -479,7 +479,7 @@ void STMClient::main( void )
if ( sel.signal( SIGWINCH ) ) {
/* resize */
if ( !process_resize() ) { return; }
if ( !process_resize() ) { return false; }
}
if ( sel.signal( SIGCONT ) ) {
@@ -572,5 +572,6 @@ void STMClient::main( void )
}
}
}
return clean_shutdown;
}