mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 02:41:54 +00:00
Dont print to stderr when shutting down master connections at exit
This commit is contained in:
parent
ffbc9174f8
commit
3282c8200d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue