mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Dont print to stderr when shutting down master connections at exit
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user