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:
@@ -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 } ) {
|
||||
|
||||
Reference in New Issue
Block a user