diff options
author | John Hood <cgull@glup.org> | 2015-10-18 16:27:31 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2015-11-24 02:36:08 -0500 |
commit | b742e958b6ae7185f557263e4b81db0e1038b882 (patch) | |
tree | b7055aaaaed91508f3146adc389d0533a9dd51f2 /scripts | |
parent | 4b8444988e8e8b8d244f8576cc013c90a91ab3f6 (diff) |
mosh-server: Support timeouts on lost connectivity to network client.
Closes #690.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mosh.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl index 2ef5a86..77bf32c 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -266,6 +266,8 @@ if ( (not defined $colors) $colors = 0; } +$ENV{ 'MOSH_CLIENT_PID' } = $$; # We don't support this, but it's useful for test and debug. + my $pid = open(my $pipe, "-|"); die "$0: fork: $!\n" unless ( defined $pid ); if ( $pid == 0 ) { # child |