diff --git a/scripts/mosh.pl b/scripts/mosh.pl index 56e96d7..f224ef3 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -439,8 +439,8 @@ if ( $pid == 0 ) { # child print "$_\n"; } } - waitpid $pid, 0; close $pipe; + waitpid $pid, 0; if ( not defined $ip ) { if ( defined $sship ) {