Skip to content

Commit

Permalink
Fixes after merging 1187, 1108 and mobile-shell#1297
Browse files Browse the repository at this point in the history
  • Loading branch information
msva committed Jun 17, 2024
1 parent bf8b6fc commit 0e0877b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/mosh-server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static void print_version( FILE* file )
static void print_usage( FILE* stream, const char* argv0 )
{
fprintf( stream,
"Usage: %s new [-D] [-s] [-v] [-i LOCALADDR] [-p PORT[:PORT2]] [-c COLORS] [-l NAME=VALUE] [-- COMMAND...]\n",
"Usage: %s new [-A] [-D] [-s] [-v] [-i LOCALADDR] [-p PORT[:PORT2]] [-c COLORS] [-l NAME=VALUE] [-- COMMAND...]\n",
argv0 );
}

Expand Down Expand Up @@ -475,7 +475,7 @@ static int run_server( const char* desired_ip,
fatal_assert( 0 == sigaction( SIGPIPE, &sa, NULL ) );

pid_t the_pid = -1;
if ( !foreground )
if ( !foreground ) {
/* detach from terminal */
fflush( NULL );
the_pid = fork();
Expand Down Expand Up @@ -633,7 +633,7 @@ static int run_server( const char* desired_ip,
perror( "unsetenv" );
exit( 1 );
}

chdir_homedir();

if ( with_motd && ( !motd_hushed() ) ) {
Expand Down

0 comments on commit 0e0877b

Please sign in to comment.