Have ssh close stdin and forceallocate pty

Somehow we still need to have a real pty on stdin to ssh so
window-size-thingie works.
This commit is contained in:
Anton Lundin
2013-01-18 00:19:14 +01:00
committed by Keith Winstein
parent 077b664f13
commit e0dfe363a0
+1 -1
View File
@@ -244,7 +244,7 @@ if ( $pid == 0 ) { # child
} }
my $quoted_self = shell_quote( $0 ); my $quoted_self = shell_quote( $0 );
exec "$ssh " . shell_quote( '-S', 'none', '-o', "ProxyCommand=$quoted_self --fake-proxy -- %h %p", '-t', $userhost, '--', "$server " . shell_quote( @server ) ); exec "$ssh " . shell_quote( '-S', 'none', '-o', "ProxyCommand=$quoted_self --fake-proxy -- %h %p", '-n', '-tt', $userhost, '--', "$server " . shell_quote( @server ) );
die "Cannot exec ssh: $!\n"; die "Cannot exec ssh: $!\n";
} else { # parent } else { # parent
my ( $ip, $port, $key ); my ( $ip, $port, $key );