aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-12-09 16:55:37 +0100
committerGitHub <noreply@github.com>2024-12-09 16:55:37 +0100
commitdeb20beab710350f9eafefe7781adf1830300868 (patch)
tree3d59a66a72a368453456b4bd6dbbc58eccfb2db0
parentd69acce3ea272b21b41613d1edc6bcdcd025b8a5 (diff)
downloadFlightCore-deb20beab710350f9eafefe7781adf1830300868.tar.gz
FlightCore-deb20beab710350f9eafefe7781adf1830300868.zip
fix: Address clippy error regarding zombie child process (#1053)
https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes
-rw-r--r--src-tauri/src/northstar/mod.rs3
1 files changed, 2 insertions, 1 deletions
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());
}