aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Jaeho Shin <netj@cs.stanford.edu>2016-04-02 02:55:38 -0700
committerGravatar John Hood <cgull@glup.org>2016-05-08 23:05:36 -0400
commitd636845c8d2e7cde2303e5fa30a3bc6562080593 (patch)
treeb967dd7302bec8c8952f383ffd85a6b48b8c8a00 /scripts
parent09bdc7caaee4473b4f1087b1e58058b3ea383655 (diff)
Display original command line argv via no-op flag.
Improves 679b819216e1946ebe3a6f920c0fbf61d61ab47e to make it simpler to ignore mosh-client from OS X Terminal.app's "Ask before closing" process list. (See: http://superuser.com/a/254647) Moreover, the command displayed from ps is a completely functional one, which was not the case in the previous approach, that mangles `argv[0]`. Fixes #742.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mosh.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl
index 375906b..c6fc632 100755
--- a/scripts/mosh.pl
+++ b/scripts/mosh.pl
@@ -431,7 +431,7 @@ if ( $pid == 0 ) { # child
$ENV{ 'MOSH_KEY' } = $key;
$ENV{ 'MOSH_PREDICTION_DISPLAY' } = $predict;
$ENV{ 'MOSH_NO_TERM_INIT' } = '1' if !$term_init;
- exec {$client} ("$client @cmdline |", $ip, $port);
+ exec {$client} ("$client", "-# @cmdline |", $ip, $port);
}
sub shell_quote { join ' ', map {(my $a = $_) =~ s/'/'\\''/g; "'$a'"} @_ }