Skip to content

Commit

Permalink
chore: fixup cmd [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Aug 21, 2024
1 parent d5f3069 commit 0592f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/rust/driver/src/child_process.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Module for managing running child processes
use std::io::{BufRead, BufReader};
use std::process::Child;
use std::process::{self, Child, Command};
use std::sync::mpsc::channel;
use std::time::Duration;

Expand Down Expand Up @@ -118,7 +118,7 @@ impl ChildPluginProcess {
#[cfg(not(windows))]
process.kill();
#[cfg(windows)]
process::Command::new("taskkill.exe").arg("/PID").arg(self.child_pid.to_string()).arg("/F").arg("/T").output();
let _ = Command::new("taskkill.exe").arg("/PID").arg(self.child_pid.to_string()).arg("/F").arg("/T").output();
} else {
warn!("Child process with PID {} was not found", self.child_pid);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/rust/driver/src/plugin_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async fn start_plugin_process(manifest: &PactPluginManifest) -> anyhow::Result<P
#[cfg(not(windows))]
process.kill();
#[cfg(windows)]
process::Command::new("taskkill.exe").arg("/PID").arg(child_pid.to_string()).arg("/F").arg("/T").creation_flags(CREATE_NO_WINDOW.0).output();
let _ = Command::new("taskkill.exe").arg("/PID").arg(child_pid.to_string()).arg("/F").arg("/T").output();
} else {
warn!("Child process with PID {} was not found", child_pid);
}
Expand Down

0 comments on commit 0592f88

Please sign in to comment.