Skip to content
This repository
Browse code

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...
commit 9296ffbed70b44e35ecd5f68176b957629595533 1 parent 9cade23
sirainen authored August 11, 2012 keithw committed August 11, 2012

Showing 1 changed file with 0 additions and 5 deletions. Show diff stats Hide diff stats

  1. 5  src/frontend/mosh-server.cc
5  src/frontend/mosh-server.cc
@@ -422,11 +422,6 @@ int run_server( const char *desired_ip, const char *desired_port,
422 422
   if ( child == 0 ) {
423 423
     /* child */
424 424
 
425  
-    /* reopen stdio */
426  
-    stdin = fdopen( STDIN_FILENO, "r" );
427  
-    stdout = fdopen( STDOUT_FILENO, "w" );
428  
-    stderr = fdopen( STDERR_FILENO, "w" );
429  
-
430 425
     /* reenable signals */
431 426
     struct sigaction sa;
432 427
     sa.sa_handler = SIG_DFL;

0 notes on commit 9296ffb

Please sign in to comment.
Something went wrong with that request. Please try again.