eoptasks: disable connection sharing as it proved unreliable

This commit is contained in:
Frédéric Péters 2019-01-02 18:49:29 +01:00
parent ba350c8200
commit c15bfacd64
1 changed files with 3 additions and 1 deletions

View File

@ -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',