Permalink
Browse files

Don't reopen stdio. It's not needed, and it doesn't compile with Sola…

…ris.

Signed-off-by: Timo Sirainen <tss@iki.fi>
  • Loading branch information...
1 parent 9cade23 commit 9296ffbed70b44e35ecd5f68176b957629595533 @sirainen sirainen committed with keithw Aug 11, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/frontend/mosh-server.cc
View
5 src/frontend/mosh-server.cc
@@ -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;

0 comments on commit 9296ffb

Please sign in to comment.