Skip to content

Commit

Permalink
Don't reopen stdio. It's not needed, and it doesn't compile with Sola…
Browse files Browse the repository at this point in the history
…ris.

Signed-off-by: Timo Sirainen <tss@iki.fi>
  • Loading branch information
sirainen authored and keithw committed Aug 11, 2012
1 parent 9cade23 commit 9296ffb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/frontend/mosh-server.cc
Expand Up @@ -422,11 +422,6 @@ int run_server( const char *desired_ip, const char *desired_port,
if ( child == 0 ) {
/* child */

/* reopen stdio */
stdin = fdopen( STDIN_FILENO, "r" );
stdout = fdopen( STDOUT_FILENO, "w" );
stderr = fdopen( STDERR_FILENO, "w" );

/* reenable signals */
struct sigaction sa;
sa.sa_handler = SIG_DFL;
Expand Down

0 comments on commit 9296ffb

Please sign in to comment.