1
0
mirror of https://github.com/mobile-shell/mosh.git synced 2026-03-01 18:23:30 +01:00

Small fixups to pty reversal to make work on Linux.

This commit is contained in:
Keith Winstein
2012-04-16 07:27:24 -04:00
parent fe8e50de2b
commit 18dc967c09

View File

@@ -193,9 +193,9 @@ my $pid = fork;
die "$0: fork: $!\n" unless ( defined $pid );
if ( $pid == 0 ) { # child
$pty->close_slave();
$pty->set_raw();
open STDOUT, ">&", $pty or die;
open STDERR, ">&", $pty or die;
close $pty;
my @server = ( 'new', '-s' );
@@ -218,6 +218,7 @@ if ( $pid == 0 ) { # child
die "Cannot exec ssh: $!\n";
} else { # server
my ( $ip, $port, $key );
close $pty;
LINE: while ( <$pty_slave> ) {
chomp;
if ( m{^MOSH IP } ) {