windows: Don't show cmd window when remoting (#34187)

Release Notes:

- N/A
This commit is contained in:
张小白 2025-07-10 17:19:12 +08:00 committed by GitHub
parent 76e52ea374
commit 3169f06404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1573,7 +1573,7 @@ impl SshRemoteConnection {
// https://github.com/PowerShell/Win32-OpenSSH/wiki/Project-Scope
#[cfg(target_os = "windows")]
let args = ["-N"];
let mut master_process = process::Command::new("ssh");
let mut master_process = util::command::new_smol_command("ssh");
master_process
.kill_on_drop(true)
.stdin(Stdio::null())