From b245ed00ca28d582bff3d1effd0678dfa10b7d45 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 11 Aug 2012 23:13:24 +0300 Subject: [PATCH] Don't call setsid(), forkpty() does it anyway. This fixes a failing ioctl(TIOCSCTTY) in Solaris. Signed-off-by: Timo Sirainen --- src/frontend/mosh-server.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index 5afff25..4530ebf 100644 --- a/src/frontend/mosh-server.cc +++ b/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 \n" ); fprintf( stderr, "License GPLv3+: GNU GPL version 3 or later .\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n" );