From c15bfacd640f2f3f70082741a9ca43b7b606c122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 2 Jan 2019 18:49:29 +0100 Subject: [PATCH] eoptasks: disable connection sharing as it proved unreliable --- eoptasks/eoptasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py index 492f8d0..bb00161 100755 --- a/eoptasks/eoptasks.py +++ b/eoptasks/eoptasks.py @@ -218,7 +218,9 @@ def command_window(args): cmd += ' ' + ' '.join(['"%s"' % x for x in args.args]) orig_cmd = cmd while True: - rc = subprocess.call(['ssh', '-t', args.command_server_name] + [cmd]) + # -t: force a tty for interactive commands. + # -S none: disable connection sharing as it proved unreliable. + rc = subprocess.call(['ssh', '-t', '-o', 'ControlMaster=no', '-S', 'none', args.command_server_name] + [cmd]) if rc == 0: send_status_message(tmux_session_name, {'@type': 'server-result',