Skip to content

Commit

Permalink
Close some leftover fd's
Browse files Browse the repository at this point in the history
  • Loading branch information
glance- authored and keithw committed Jan 18, 2013
1 parent dd5a69b commit 077b664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/mosh
Expand Up @@ -225,6 +225,7 @@ if ( $pid == 0 ) { # child
open STDOUT, ">&", $pty or die;
open STDERR, ">&", $pty or die;
open STDIN, "<&", $pty or die;
close $pty;

my @server = ( 'new', '-s' );

Expand Down Expand Up @@ -270,6 +271,7 @@ if ( $pid == 0 ) { # child
}
}
waitpid $pid, 0;
close $pty_slave;

if ( not defined $ip ) {
die "$0: Did not find remote IP address (is SSH ProxyCommand disabled?).\n";
Expand Down

0 comments on commit 077b664

Please sign in to comment.