Skip to content

Commit

Permalink
Tidy up unattached warning, only print when showing motd
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Jul 23, 2012
1 parent 549cf0a commit 2cb2f3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/frontend/mosh-server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,9 @@ int run_server( const char *desired_ip, const char *desired_port,

if ( with_motd && (!motd_hushed()) ) {
print_motd();
warn_unattached( utmp_entry );
}

warn_unattached( utmp_entry );

Crypto::reenable_dumping_core();

if ( execvp( command_path.c_str(), command_argv ) < 0 ) {
Expand Down Expand Up @@ -808,7 +807,7 @@ void warn_unattached( const char *ignore_entry )
for ( vector< string >::const_iterator it = unattached_who_lines.begin();
it != unattached_who_lines.end();
it++ ) {
printf( "%s\n", it->c_str() );
printf( "| %s\n", it->c_str() );
}

printf( "\n" );
Expand Down

0 comments on commit 2cb2f3a

Please sign in to comment.