Permalink
Browse files

Don't call setsid(), forkpty() does it anyway. This fixes a failing i…

…octl(TIOCSCTTY) in Solaris.

Signed-off-by: Timo Sirainen <tss@iki.fi>
  • Loading branch information...
sirainen authored and keithw committed Aug 11, 2012
1 parent 4f66e9a commit b245ed00ca28d582bff3d1effd0678dfa10b7d45
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/frontend/mosh-server.cc
@@ -370,10 +370,6 @@ int run_server( const char *desired_ip, const char *desired_port,
_exit( 0 );
}
- if ( setsid() < 0 ) {
- perror( "setsid" );
- }
-
fprintf( stderr, "\nmosh-server (%s)\n", PACKAGE_STRING );
fprintf( stderr, "Copyright 2012 Keith Winstein <mosh-devel@mit.edu>\n" );
fprintf( stderr, "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n" );

0 comments on commit b245ed0

Please sign in to comment.