From deb20beab710350f9eafefe7781adf1830300868 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:55:37 +0100 Subject: fix: Address clippy error regarding zombie child process (#1053) https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes --- src-tauri/src/northstar/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-tauri') diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs index 4b16f701..9953d742 100644 --- a/src-tauri/src/northstar/mod.rs +++ b/src-tauri/src/northstar/mod.rs @@ -214,10 +214,11 @@ pub fn launch_northstar( let ns_exe_path = format!("{}/NorthstarLauncher.exe", game_install.game_path); let ns_profile_arg = format!("-profile={}", game_install.profile); - let _output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe") + let mut output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe") .args(["/C", "start", "", &ns_exe_path, &ns_profile_arg]) .spawn() .expect("failed to execute process"); + output.wait().expect("failed waiting on child process"); return Ok("Launched game".to_string()); } -- cgit v1.2.3