mosh-client: return meaningful exitstatus on network setup/teardown or other failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user