Dont print to stderr when shutting down master connections at exit

This commit is contained in:
Kovid Goyal 2022-03-10 11:22:46 +05:30
parent ffbc9174f8
commit 3282c8200d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -353,7 +353,7 @@ def cleanup_ssh_control_masters() -> None:
except OSError:
return
for x in files:
subprocess.run(['ssh', '-o', f'ControlPath={x}', '-O', 'exit', 'kitty-unused-host-name'])
subprocess.run(['ssh', '-o', f'ControlPath={x}', '-O', 'exit', 'kitty-unused-host-name'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
with suppress(OSError):
os.remove(x)